freezeframe.js automatically pauses animated GIFs
and enables them to start animation on mouse hover or click.

It is easy to install, free to use, and weighs in at only 8kb.


<script type="text/javascript" src="freezeframe.js"></script>
<img class="freezeframe" src="img/mr_div_retro_sphere.gif" />
Image: Retro Sphere by Mr. Div


Fork me on Github.

freezeframe.js v2.0.2


A copy of the documentation is included with the above download.

FreezeFrame Documentation


While not required, I would appreciate a link back to my website if freezeframe is included in your work. Here is a suggestion:

Using <a href="http://freezeframe.chrisantonellis.com">FreezeFrame</a>
by <a href="http://www.chrisantonellis.com">Chris Antonellis</a>

This could be included in the footer, about page, readme file or not at all.


freezeframe.js was written by Chris Antonellis and is licensed under a Creative Commons 3.0 License.
You can visit my personal website at http://www.chrisantonellis.com and contact me via email at christopher.antonellis@gmail.com.

Download & Documentation Icons by Yusuke Kamiyamane