본문 바로가기

GIF 플레이어(제어)

MintState 2017년 9월 26일 오전 11:37 조회 9335

IF 플레이어(제어)

가끔씩 gif 를 홈페이지에 넣게 되는데 계속 로테이션으로 플레이 되어 안좋은 때가 있습니다.

그래서 소개해 드릴것이 gifplayer 입니다. jquery 플러그인식으로 작동합니다.
http://rubentd.com/gifplayer
https://github.com/rubentd/gifplayer

Customizable jquery plugin to play and stop animated gifs. Similar to 9gag's. New: Video support (webm, mp4)

###Basic Usage
1. Add a preview of the gif or video file to your website
2. Specify a ‘data-src’ attribute with the path to the animated gif or video, or simply have an image with the same name and the .gif extension in the same folder of the ‘preview’ image
3. Include jquery.js, jquery.gifplayer.js and gifplayer.css on your site
4. Call the .gifplayer() method for the desired images

<img class="gifplayer" src="media/banana.png" />
<script>
	$('.gifplayer').gifplayer();
</script>

첨부파일

공유 X Facebook LINE QR 코드

댓글 0개

첫 댓글을 남겨보세요.