Gifplayer is a jquery plugin that controls the playback and suspension of animated GIF images. The jquery plugin is simple to use and has a small file size. Lets you control the start and pause playback of any animated GIF picture.
To use the GIF animated image jquery plugin, you can divide it into the following five steps:
- Add a static version of the GIF to your page, in the format of PNG, JPG, and other picture formats.
- Add the Data-gif attribute to the IMG tag to point to the animated GIF picture, or not to write it.
- In the Pictures folder, place the. gif format picture and its static version of the picture, the names of the two pictures are the same.
- Introduce Gifplayer.js and gifplayer.css files to your page.
- After the page has been loaded, the plug-in is called Through the. Gifplayer () method.
Online Demo: http://www.htmleaf.com/Demo/201503071479.html
: http://www.htmleaf.com/jQuery/Image-Effects/201503071478.html
Control GIF animated pictures to play and pause jquery plugins