janpaepke / ScrollMagic

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

Bug: TweenMax.from()/.staggerFrom() etc. are broken when destroying controller #909

Open VIPStephan opened 5 years ago

VIPStephan commented 5 years ago

I think I found a bug. If a GSAP “from” function is being used (e. g. TweenMax.from()), whenever a controller is destroyed and then recreated, the animation doesn’t work anymore. Example: http://jsfiddle.net/fq8Lsw7v/1/

Click “create” and “destroy” at free will and try it. Feel free to change TweenMax.from to TweenMax.to and see how it always works.

pixels-aromates commented 4 years ago

same issue

pixels-aromates commented 4 years ago

I got around my issue with fromTo @VIPStephan