Closed skhtml closed 6 years ago
How did you solve the issue?
Yes: You just need to call scrollMagic scene.refresh();
var controllerMain = new ScrollMagic.Controller(); var promoWrapperAnimScene = new ScrollMagic.Scene({triggerElement: ".promo-sections-wrapper", triggerHook: 1, duration: promoWrapperHeight}) .setTween(".js_Fill", 1, {height: "100%", ease: Linear.easeNone}) .addTo(controllerMain); scrollbar.addListener(function (s) { promoWrapperAnimScene.refresh(); });
Thanks for awesome code, you guys making this internet better :)