Skip to content

menghany/thin-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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.0%
  • HTML 6.4%
  • CoffeeScript 3.5%
  • CSS 3.4%
  • Less 1.9%
  • Pug 1.8%