Skip to content

render gif frame by frame support play、 pause、 toogle and more feature

License

Notifications You must be signed in to change notification settings

gnipbao/gifplay

Repository files navigation

gifplay-js

animated GIF player with canvas support for pausing, going frame-by-frame

Install

$ npm i gifplay-js

Usage

// import
import { GifPlay } from 'gifplay-js'
const url = 'xx.gif' // gif url
const canvas = document.querySelector('canvas') // canvas element
const player = new GifPlay(canvas, url)
// play gif
player.play()
// pause gif
player.pause()

API

  • play
  • pause
  • togglePlay
  • seek
  • seekFrame

detail docs

About

render gif frame by frame support play、 pause、 toogle and more feature

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published