janpaepke / ScrollMagic

The javascript library for magical scroll interactions.
http://ScrollMagic.io
Other
14.9k stars 2.17k forks source link

Scroll does not work at all unless i remove add indicators #874

Open RasenGUY opened 5 years ago

RasenGUY commented 5 years ago

Hello guys,

Im doing a simple project using scrollmagic, it seems the scene does not work at all when i remove am i doing something wrong here?

`// initiate controller var controller = new ScrollMagic.Controller({ addIndicators: 'true' });

    // create tween
    var tween = TweenMax.to("#target", 1, {y: -650});

   //initiate scene
    var scene = new ScrollMagic.Scene({
        triggerElement: '#trigger',
        duration: "200"
    })
    .setTween(tween)
    .setPin("#target", {pushFollowers: true})
    .offset(200)
    .triggerHook(1)
    .addTo(controller)`
shikkaba commented 4 years ago

var controller = new ScrollMagic.Controller();

That's what it should look like without addIndicators.