Jump to content
Search Community

Multi-Tween Timeline - parameterized properties

Tanuki test
Moderator Tag

Go to solution Solved by Carl,

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...