Facebook-like GIF Player Plugin With jQuery - jqGifPreview
File Size: | Unknown |
---|---|
Views Total: | 1793 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

jqGifPreview is a jQuery GIF player plugin for adding a play control over the GIF preview image that allows the visitors to play the animated GIF manually.
How to use it:
1. Include the required CSS file in the head section of the webpage.
<link rel="stylesheet" href="jqGifPreview.css">
2. Insert the first frame of the GIF into your webpage and use the data-gif
attribute to specify the actual path to your GIF file.
<img class="demo" src="first-frame.png" data-gif="1.gif">
3. Include the jqGifPreview.js
script after loading jQuery JavaScript library.
<script src="//code.jquery.com/jquery-1.12.1.min.js"></script> <script src="jqGifPreview.js"></script>
4. Call the function on the img
tag and done.
$(".demo").jqGifPreview();
This awesome jQuery plugin is developed by SodhanaLibrary. For more Advanced Usages, please check the demo page or visit the official website.