beenjamin Posted February 20 Posted February 20 Looking at the demo "Image comparison on scroll" from this page what is that last variable (zero) in the last "fromTo" at the very end? i could not find any hints in the docs. Appreciate any help, thanks a lot! See the Pen oNjgEjm?editors=1100 by GreenSock (@GreenSock) on CodePen.
Solution mvaneijgen Posted February 20 Solution Posted February 20 Hi @beenjamin welcome to the forum! That is the position parameter and it is used to time tweens on a timeline. This 0 in particular states "put this tween at the 0 mark of the whole timeline", eg at the start of the timeline. Just as a note setting "<" would do the same thing in this case, this helper states "start this tween at the same time as the previous tween". If you're interested in what all is possible with GSAP take a look at our awesome getting started guide https://gsap.com/resources/get-started/ teaches you all the basics. Hope it helps and happy tweening! 2
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