Skip to content

UseAllFive/gifler

 
 

Repository files navigation

Gifler

Animate GIFs in canvas.

  • Loads GIF contents with XHR
  • Decodes GIF frames and pixels with omggif
  • Prepares canvas buffer for fast rendering
  • Animates each frame and compensates for render delays
  • API enables fully custom canvas rendering

Examples & Docs

http://themadcreator.github.io/gifler/

Usage

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

License

Apache-2.0

About

Render GIF frames to canvas

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 82.5%
  • HTML 8.5%
  • CSS 5.4%
  • CoffeeScript 3.6%