Play Spirit animations on the web
Spirit ⚡️ Web Player
Lightweight and easy to use
Play your animations on the web
install:
npm install spiritjs --save
Usage:
// load GSAP from CDN
import spirit from 'spiritjs';
spirit.loadAnimation({ path: './animation.json' }).then(timeline => timeline.play());
// use existing GSAP instance
import gsap from 'gsap';
import spirit from 'spiritjs';
spirit.setup(gsap).then(() => {
spirit.loadAnimation({ path: './animation.json' }).then(timeline => timeline.play());
});
For more info check out the API Documentation.
No open issues yet, or sync has not completed.