// make a controller and add indicators to all scenes attached
var controller = new ScrollMagic.Controller({addIndicators: true});
// this scene will automatically have indicators added to it
new ScrollMagic.Scene()
.addTo(controller);
// build scene
var scene = new ScrollMagic.Scene({
triggerElement: "#trigger1"
})
.setTween("#animate1", 0.5, {backgroundColor: "green", scale: 2.5}) // trigger a TweenMax.to tween
.addIndicators({name: "1 (duration: 0)"}) // add indicators (requires plugin)
.addTo(controller);
// make a controller and add indicators to all scenes attached
var controller = new ScrollMagic.Controller({addIndicators: true});
// this scene will automatically have indicators added to it
new ScrollMagic.Scene()
.addTo(controller);
// build scene
var scene = new ScrollMagic.Scene({
triggerElement: "#trigger1"
})
.setTween("#animate1", 0.5, {backgroundColor: "green", scale: 2.5}) // trigger a TweenMax.to tween
.addIndicators({name: "1 (duration: 0)"}) // add indicators (requires plugin)
.addTo(controller);