Skip to content
jQuery Plugin For GIF Preview As Like Facebook
CSS JavaScript HTML
Branch: master
Clone or download
SodhanaLibrary commit2
description updated
Latest commit 46d8d1d Mar 2, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
jqGifPreview
LICENSE
README.md
demo.html
demo.js
sample_first_frame.png
sample_giphy.gif

README.md

jqGifPreview

jQuery Plugin For GIF Preview As Like Facebook ###Explanation [Click here] (http://blog.sodhanalibrary.com/2016/03/facebook-like-gif-preview-using-jquery.html) to read complete explanation ###Demo [Click here] (http://demo.sodhanalibrary.com/angular/gif_preview/jqGifPreview/demo.html) to see demo

##Implementation ###Add jQuery

<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>

###Add CSS and JS files

<link rel="stylesheet" href="jqGifPreview/jqGifPreview.css" />
<script src="jqGifPreview/jqGifPreview.js"></script>

###HTML

<img class="myImg" src="sample_first_frame.png" data-gif="sample_giphy.gif" />

####Attributes data-gif : gif image path

src : gif preview image path ##JS Code

$(".myImg").jqGifPreview();
You can’t perform that action at this time.