Extended API
This extended API gives you more control than the shorthand notation.
Example:
spirit.setup().then(() => { // load gsap
spirit.load('animations.json', containerEl).then( // load animations on container
groups => {
const timeline = groups.get('ghost').construct() // construct GSAP Timeline
timeline.play(0) // play timeline
}
)
})