janpaepke / ScrollMagic

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

Using ScrollMagic with GSAP yoyo not appearing to work? #780

Closed jodriscoll closed 6 years ago

jodriscoll commented 6 years ago

Hello! Fantastic library overall! I've had to learn it over the past 24hrs to replicate some desired behavior from an archaic example website. I've been able to produce most of the functionality at the codepen below, however, I'm running into a challenge with having the GSAP yoyo behavior animate a repeat set to 1 with the scroll positioning.

Description The GSAP TweenMax parameter yoyo doesn't appear to be firing. The part of the to behavior is to consume 50% of the default scene, with the second half of (the yoyo half) completing the other 50% of the scene moving the animated lines back into place.

https://codepen.io/jodriscoll/pen/PRPmem

jodriscoll commented 6 years ago

Issue resolved within the GSAP git! Closing!