gmullinix Posted January 6, 2020 Share Posted January 6, 2020 If I create a paused timeline, its isActive() value appears to be 0 instead of false. Please check the Codepen for more info. Am I setting up the timeline incorrectly or is it a bug? See the Pen qBEVyRv by gem0303 (@gem0303) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted January 6, 2020 Share Posted January 6, 2020 This is something that @GreenSock will need to look at/explain. Generally people just do if(tl.isActive()) or if(!tl.isActive()) for these types of checks, not using false/true using == or ===. Link to comment Share on other sites More sharing options...
GreenSock Posted January 6, 2020 Share Posted January 6, 2020 Yep, @ZachSaucier is right - it's most common for folks to just rely on isActive() to be truthy/falsey but I can apply some extra code to ensure it's a boolean in the next release which you can preview at https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/gsap-latest-beta.min.js 1 1 Link to comment Share on other sites More sharing options...
gmullinix Posted January 6, 2020 Author Share Posted January 6, 2020 I changed my code as Zach suggested. Thanks for the quick update! 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