Octa Posted January 23, 2020 Share Posted January 23, 2020 Is there an exact replacement for the `Linear.ease`? https://greensock.com/docs/v2/Easing/Linear/static.ease Link to comment Share on other sites More sharing options...
GreenSock Posted January 23, 2020 Share Posted January 23, 2020 Hm, I'm not sure how that ever got in the old docs - there's no such thing and never has been. I've deleted it now. Typically the old syntax was Linear.easeNone. In GSAP 3, it's as simple as ease: "none" or ease: "linear". Is that what you're looking for? 1 Link to comment Share on other sites More sharing options...
ZachSaucier Posted January 23, 2020 Share Posted January 23, 2020 Hey Octa and welcome to the GreenSock forums! Also note that we recommend using our eases page to learn about formatting GSAP's eases. It even has a handy visualizer to preview the effect that different eases have! 1 Link to comment Share on other sites More sharing options...
Octa Posted January 23, 2020 Author Share Posted January 23, 2020 Hey, Thanks for the fast reply. I've looked over the eased but i could not find this one . Linear.easeNone -> "linear" Linear.easeInOut -> "linear.inOut" Linear.easeOut -> "linear.out" Linear.easeIn -> "linear.in" "linear" (a.k.a. "none" or "power0") Link to comment Share on other sites More sharing options...
ZachSaucier Posted January 23, 2020 Share Posted January 23, 2020 As Jack said, there is no such thing as Linear.ease. In any version of GSAP. It was in the docs by mistake somehow. Link to comment Share on other sites More sharing options...
GreenSock Posted January 23, 2020 Share Posted January 23, 2020 9 minutes ago, Octa said: Hey, Thanks for the fast reply. I've looked over the eased but i could not find this one . Linear.easeNone -> "linear" Linear.easeInOut -> "linear.inOut" Linear.easeOut -> "linear.out" Linear.easeIn -> "linear.in" "linear" (a.k.a. "none" or "power0") Just to be clear, those are all exactly the same ease. There's no difference between a linear.in, linear.inOut, or linear.out. Those are merely there for convention. A linear ease is linear no matter what 2 Link to comment Share on other sites More sharing options...
erikb Posted April 14, 2023 Share Posted April 14, 2023 It seems that parseEase('linear') and parseEase('none') return different functions? See the Pen VwEeJGz by jedierikb (@jedierikb) on CodePen Link to comment Share on other sites More sharing options...
Rodrigo Posted April 14, 2023 Share Posted April 14, 2023 Hi, Indeed they return different functions when logged like that, but the end result is the same. See the Pen MWPyYEj by GreenSock (@GreenSock) on CodePen My guess is that this is there for legacy reasons, but I couldn't confirm that. Since it's working in the way it should the question would be if this is causing any issues in your setup? Happy Tweening! 1 Link to comment Share on other sites More sharing options...
erikb Posted April 14, 2023 Share Posted April 14, 2023 All okay on my end, thank you. Came across the discrepancy while going through some logs, so I reported it. 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