Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Norixxx

StaggerFrom start specific elements' animation simultaneously

Recommended Posts

Hi. first time to post here. 

 

I wondered how to start specific elements' animation at same time in Timelinelite with starggerFrom methods?

Let's say I have 5 elements and I want to make 2nd and 3rd animation start at the same time.

 

Is there any settings I can use in staggerFrom?

See the Pen mGvOQR by nori2tae (@nori2tae) on CodePen

Link to post
Share on other sites

If you use the cycle property, you can define some clever way to select your desired elements using a function and adding a delay to each instead of using the staggerFrom/To own stagger:

 

See the Pen MqLoKR?editors=0011 by dipscom (@dipscom) on CodePen

 

  • Like 5
  • Thanks 1
Link to post
Share on other sites

@Dipscom That's very good to know that I can pass a function to delay property.

And I also noticed that stagger delay was set to 0 for whole time line then you do the cycle and gave each item a delay. 

 

Thank you so much!

Link to post
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.

×