pc outlogin 아래에 비디오효과 적용하기
pc 버전 outlogin 아래에 비디오효과를 넣어보았습니다.
tail.php에 아래 코드를 넣어줍니다.
a 태그에서 링크주소를 원하는대로 넣으시면 됩니다.
배경사진은 크기를 outlogin의 크기에 맞게 235px로 만들었습니다.
mp4 영상은 에펙에서 motion trail효과로 만든 2초 분량의 영상입니다.
배경사진위에서 이 mp4 영상이 autoplay로 반복 재생이 되어 영상효과를 냅니다.
[code]
<div id="kim231" style="padding:2px;">
<a href="https://sir.kr">
<div style=width:231px;height:235px;background:url(http://test.com/images/moon.jpg)>
<video style=width:231px;mix-blend-mode:screen src=http://test.com//video/effect/motion.mp4 autoplay loop muted></video>
</div>
</a>
</div>[/code]
mix-blend-mode로 screen를 주는것이 배경사진과 mp4영상이 가장 잘 조화가 됩니다. screen대신에 다른 것을 적용하려면 아래를 참고하세요
https://www.w3schools.com/cssref/playdemo.php?filename=playcss_mix-blend-mode
아래팁을 참고했습니다
https://sir.kr/g5_tip/15911?sfl=wr_name%2C1&stx=%EB%B9%84%ED%83%80%EC%A3%BC%EB%A6%AC
감사합니다.
댓글 6개
예전 플래시효과를 대체해도 되겠습니다.
에펙으로 영상을 만드는데 자바스크립트 표현식을 사용했습니다
자바스크립트가 안쓰이는 곳이 없네요^^
감사합니다.
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4796 | jQuery | 8년 전 | 1550 | ||
| 4795 | jQuery | 8년 전 | 1454 | ||
| 4794 | jQuery | 8년 전 | 1573 | ||
| 4793 | jQuery | 8년 전 | 1626 | ||
| 4792 | jQuery | 8년 전 | 1643 | ||
| 4791 | jQuery | 8년 전 | 1804 | ||
| 4790 | jQuery | 8년 전 | 1742 | ||
| 4789 | jQuery | 8년 전 | 1605 | ||
| 4788 | jQuery | 8년 전 | 1668 | ||
| 4787 | jQuery | 8년 전 | 1482 | ||
| 4786 | jQuery | 8년 전 | 1442 | ||
| 4785 | jQuery | 8년 전 | 1655 | ||
| 4784 | jQuery | 8년 전 | 1539 | ||
| 4783 | jQuery | 8년 전 | 1245 | ||
| 4782 | jQuery | 8년 전 | 1611 | ||
| 4781 | jQuery | 8년 전 | 1352 | ||
| 4780 | jQuery | 8년 전 | 1591 | ||
| 4779 | jQuery | 8년 전 | 1997 | ||
| 4778 | jQuery | 8년 전 | 1968 | ||
| 4777 | jQuery | 8년 전 | 1545 | ||
| 4776 | jQuery | 8년 전 | 1594 | ||
| 4775 | jQuery | 8년 전 | 1984 | ||
| 4774 | jQuery | 8년 전 | 1497 | ||
| 4773 | jQuery | 8년 전 | 1421 | ||
| 4772 | jQuery | 8년 전 | 2214 | ||
| 4771 | jQuery | 8년 전 | 3630 | ||
| 4770 | PHP | 8년 전 | 5595 | ||
| 4769 | 기타 | 8년 전 | 1972 | ||
| 4768 | 기타 | 8년 전 | 1793 | ||
| 4767 | 기타 | 8년 전 | 2083 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기