Share Posted March 7 Hey everyone! I would like to prevent the Scrolltrigger from playing each the time the window is resized; basically, I just want each heading to be played once and never again (except or a full page refresh). I'm aware that a normal tween might've been a better solution for what I'm trying to achieve, but I'm rolling with it for now. Rory See the Pen NWLvVKJ by RoryVB (@RoryVB) on CodePen Link to comment Share on other sites More sharing options...
Solution Solution Share Posted March 7 Heya! Not sure if I'm missing some reasoning here - but you have an event listener which is adding a new animation on every resize event, so if you remove that you have what you're after? Let me know if I'm misunderstanding your needs! See the Pen mdGMYQg?editors=0110 by GreenSock (@GreenSock) on CodePen 1 1 Link to comment Share on other sites More sharing options...
Author Share Posted March 7 Oh wow... Look at me 😅. A great example of tunnel vision I guess. Thanks! 1 Link to comment Share on other sites More sharing options...
Share Posted March 7 No worries! I love a softball forum question! 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