Load Project

The project file is an UMD module so you can import it in any kind of js app.

The following example is using CommonJS with ES5 syntax but for example you could load the project file with a script tag and get the project as a global js object.

var myProject = require('./myProject.am.js')
var node = document.getElementById('anim-root')
var timeline = myProject.timelineName(node)

Note: One Project can contain many Timelines

The created timeline is a GSAP TimelineMax instance. Check out its API to see how you can controll it.

Save Project

results matching ""

    No results matching ""