Tanuki Posted July 28, 2021 Share Posted July 28, 2021 OK, day 2 noob here... From my last codepen from day 1, I have a timeline with n tweens - to highlight the issue I've, each currently has a duration that uses either the: - default duration - duration passed as an argument from a calling gsap object - hard-coded param is it possible to pass multiple arguments of the same property and assign them to specific tweens? Or, if I have multiple tweens that need different durations, do I need to hard-code them in each tween/ Relevant Code ("sample" of what I'm trying to do) tl.swapText(".subtext", {text: text, durationTween1: 4, durationTween2: 6, durationTween3: 8, delay: 4}); Thx! See the Pen XWREReo?editors=0010 by imtanuki (@imtanuki) on CodePen Link to comment Share on other sites More sharing options...
Solution Carl Posted July 28, 2021 Solution Share Posted July 28, 2021 it sounds like passing an array of durations into the config object may do the trick. See the Pen wvdmdNp by snorkltv (@snorkltv) on CodePen 5 Link to comment Share on other sites More sharing options...
Tanuki Posted July 28, 2021 Author Share Posted July 28, 2021 Perfecto! Thx!! 2 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