npm.io
0.1.0 • Published 10 years ago

gifler

Licence
Apache-2.0
Version
0.1.0
Deps
1
Vulns
0
Weekly
0

Animate GIFs in canvas.

  • Loads GIF contents with XHR
  • Decodes GIF frames and pixels with omggif
  • Prepares canvas buffer for fast rendering
  • Frame-by-frame animator

Usage

<canvas class="example"></canvas>
<script src="gifler.js"></script>
<script>gifler('image.gif').animate('.example')</script>