mikel Posted June 6, 2020 Share Posted June 6, 2020 Hey, It's not a big deal, but a little irritating: changing the color doesn't work with a set tween in the first run See the Pen xxZGZOa by mikeK (@mikeK) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted June 6, 2020 Share Posted June 6, 2020 Thanks for the report. It seems that it's because the timeline has a duration of 0. If you add an empty tween .to({}, {}) it makes the set work as well. Using toggleClass would also be an alternative See the Pen bGEdBYM?editors=0010 by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
GreenSock Posted June 7, 2020 Share Posted June 7, 2020 Zero-duration tweens are the bane of my existence. 😬 They're tricky to deal with because technically the start and end values are exactly on top of each other. Like...the playhead literally can't move anywhere on a zero duration tween, so heuristics must be used to try to discern direction. I think I've got it nailed in the next release though. See the Pen 395c1ff0afeb747dc85e52df7f0a7f5c?editors=0010 by GreenSock (@GreenSock) on CodePen Better? Thanks for reporting it. 2 Link to comment Share on other sites More sharing options...
mikel Posted June 7, 2020 Author Share Posted June 7, 2020 Hey Jack, Thanks. My whole life is heuristic ... Have a nice Sunday. Mikel 1 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