digital-theory/js/main.js

14 lines
410 B
JavaScript
Raw Normal View History

2023-04-20 16:53:33 +02:00
//Add first scrollmagic scene
// init controller
var controller = new ScrollMagic.Controller({globalSceneOptions: {duration: 100}});
// build scenes
var scene = new ScrollMagic.Scene({
triggerElement: "#cover"
2023-04-20 16:53:33 +02:00
})
.setTween("#main_title", 0.5, {scale: 2.5}) // trigger a TweenMax.to tween
.addIndicators({name: "1"}) // add indicators (requires plugin)
.addTo(controller);
console.log('scene', scene)