A H Posted November 14, 2023 Share Posted November 14, 2023 Hey everyone- I am trying to have a set of items fade into a modal (of sorts). It kind of worked at one point when I had multiple timelines and flips but I was hoping to use a master timeline and add the tweens to it. Now it is leaving styles and sometimes the toggleClass in place at the end of the animation. I'm using tl.reverse() on close instead of having to manage multiple timelines. What am I missing that would make everything jump and leave the styles/classes? I know clearProps exists but it doesn't seem right for this instance. Any help is greatly appreciated. Thank you. See the Pen Exrwgyv by hazmat-ornery0v (@hazmat-ornery0v) on CodePen Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted November 15, 2023 Solution Share Posted November 15, 2023 Hi, I'm not 100% sure of what the problem could be in your setup, but this is a simpler and cleaner way that it works as expected: See the Pen XWOeLEb by GreenSock (@GreenSock) on CodePen Hopefully this helps. Happy Tweening! 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