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
- Host: GitHub
- URL: https://github.com/markbrouch/gifmark
- Owner: markbrouch
- Created: 2014-05-08T23:13:51.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-11T21:59:05.000Z (about 12 years ago)
- Last Synced: 2025-03-23T04:13:19.448Z (over 1 year ago)
- Language: JavaScript
- Size: 223 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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:
$('#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