Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // build scene
- var scene = new ScrollMagic.Scene({triggerElement: "#me"})
- // trigger animation by adding a css class
- .setClassToggle("h2", "tweenh2")
- .addIndicators({name: "1 - add a class"}) // add indicators (requires plugin)
- .addTo(controller);
- // build scene
- var scene = new ScrollMagic.Scene({triggerElement: "#me"})
- // trigger animation by adding a css class
- .setClassToggle("h3", "tweenh3")
- .addIndicators({name: "1 - add a class"}) // add indicators (requires plugin)
- .addTo(controller);
Add Comment
Please, Sign In to add comment