An open API service indexing awesome lists of open source software.

https://github.com/markbrouch/gifmark

jQuery Plugin for turning GIFs into Canvas
https://github.com/markbrouch/gifmark

Last synced: about 2 months ago
JSON representation

jQuery Plugin for turning GIFs into Canvas

Awesome Lists containing this project

README

          

gifMark
=======
Pronounced "jif-mark"

jQuery Plugin for turning GIFs into Canvas

Uses libgif from the [Buzzfeed Github repo](https://github.com/buzzfeed/libgif-js) to convert an image tag with a .gif source to a canvas element and provides hooks for animated gif playback.

Usage
=====
Call gifMark on an image tag that has a gif src attribute:

A GIF


$('#myGif').gifMark();

Canvas animation can be controlled via triggers on the canvas element:


$('canvas').trigger('pause'); // Pauses playback

The following triggers are available:
* play
* pause
* moveTo, i
* moveRelative, i