jonkwheeler / ScrollScene

ScrollScene is an extra layer on top of ScrollMagic as well as using IntersectionObserver to achieve similar effects.
https://scrollscene.jonkwheeler.now.sh/
MIT License
136 stars 9 forks source link

Adding GSAP tween to Scene #22

Closed kegesch closed 4 years ago

kegesch commented 4 years ago

How do you set a tween on the ScrollScene imperatively? scene.Scene.setTween(tween) throws: ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js. I need to set the Tween after the timeline was created. (Currently trying to write some React component wrappers for ScrollScene, Timeline and Tween).

jonkwheeler commented 4 years ago

Check out the README - https://github.com/jonkwheeler/ScrollScene/blob/master/README.md

There is no setTween method. But the option exists. https://github.com/jonkwheeler/ScrollScene/blob/master/README.md#using-gsap-greensock