Share Posted October 8, 2022 Hi, following this thread: Adding the "once" param fixes as suggested, but how can I reverse the animation only when scrolling and ending again to top (Y: zero) ? [or example Y-100px] onEnterBack I guess many not work, being a fixed element that doesnt enter back nowhere and I dont undertand where to add any Y value to start reversing, as it simply stay there fixed, lol Something like: scroll down, with this scrubbing, once scrolled really close to the top of the dom, then reverse the timeline, but without the scrubbing. Im stucked and I dont even know if is something doable via scrolltrigger itself. Thanks and sorry for keep on the thread, but for a misunderstanding I closed the previous one See the Pen rNvqLWG by DedaloD (@DedaloD) on CodePen Link to comment Share on other sites More sharing options...
Solution Author Solution Share Posted October 8, 2022 Solved, using the right approach See the Pen OJZBOYX by DedaloD (@DedaloD) on CodePen Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now