Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gifler

themadcreator5.2kApache-2.00.1.0

Render GIF frames to canvas

readme

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>