Facebook-like GIF Player Plugin With jQuery - jqGifPreview

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

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" 

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.


This awesome jQuery plugin is developed by SodhanaLibrary. For more Advanced Usages, please check the demo page or visit the official website.