knalle Posted June 13, 2023 Posted June 13, 2023 If i have a 5 seconds timeline I can use tweenFromTo / tweenTo with an easing (e.g. "Power3.inout" from time 1 to 2) to have a second of a timeline playing. But I cannot chain them like tl.tweenFromTo(0, 1, {ease: "Power3.inout" ).tweenFromTo(0, 1, {ease: "Power3.inout" ).tweenFromTo(.... Is there another approach to have a 5 second timeline "zoom" from each second to the next (0,1,2,3,4,5)? The timeline is a part of a master timeline.
Solution Cassie Posted June 13, 2023 Solution Posted June 13, 2023 Heya! You can do this var master = gsap.timeline(); master.add( tl.tweenFromTo("myLabel1", "myLabel2") ); master.add( tl.tweenFromTo("myLabel2", 0) ); from the docs - https://greensock.com/docs/v3/GSAP/Timeline/tweenFromTo() 1 1
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