Jump to content
Search Community

Timeline : How to initialize my timeline with the good progress state for my elements

Michaël Garcia

Go to solution Solved by GreenSock,

Recommended Posts

Michaël Garcia
Posted

I create a timeline who scales my elements with a delay of 1 second.

It works great but I'd like to see all my elements already scale at the good progress when I start my timeline.
Is there a way to do so ?

 

Indeed as you can see in my codepen, I have to wait the first round to end to have all my elements in the good progress.

 

Thank you very much

See the Pen yLrRNYV by johnndoe (@johnndoe) on CodePen.

  • Michaël Garcia changed the title to Timeline : How to initialize my timeline with the good progress state for my elements
Michaël Garcia
Posted

It really helps thank you !

Also I didn't went with a stagger solution because I'd like to trigger an event each time one of my shape completes its transformation. 

Is there a way to do it with your very shorten solution ? So far I added an onRepeat event on each of my tweens.

 

Michaël Garcia
Posted

Exactly like this yes ! Thank you very much for your example

Posted

Happy to help. ?

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...