Jump to content
GreenSock

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

Stagger with pause question

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Is it possible to add pause between each staggered element in stagger. Each element is supposed to appear and fade and don't appear. I want each element to fade after previous one has appeared and faded away and not to appear until whole loop starts again.

 

TweenMax.staggerFrom(".line11", 0.3, {opacity:0, ease: Expo. easeIn, yoyo:true, repeat:-1}, -0.59);

 

Link to comment
Share on other sites

Hey PinkMeNow and thanks for being a GreenSock club member! 

 

You can do this using stagger's each keyword that's in GSAP's advanced staggers. For more information about advanced staggers, check out the pen below.

TweenMax.staggerFrom(".line1", 1, {
  opacity:0, 
  yoyo:true, 
  repeat:-1, 
  ease: Expo.easeIn,
  stagger: {
    each:1
  }
}

See the Pen jdawKx by GreenSock (@GreenSock) on CodePen

 

P.S. I hope you're enjoying the beta release that you got access to last weekend!

  • Like 1
Link to comment
Share on other sites

Thanks. I didn't even know I have the access to beta :)

 

Im trying to achieve for each of those white forms to dissapear after appearing before next one appears...

 

See the Pen zYOXmKr by drol (@drol) on CodePen

 

Link to comment
Share on other sites

Like this? Notice the repeat.

TweenMax.staggerFrom(".st10", 0.3, {opacity:0, ease:Expo.easeIn, yoyo:true, repeat: 1}, 0.35);

 

  • Like 3
Link to comment
Share on other sites

I swear, cross my heart I tried repeat: 1.

thank you

  • Like 1
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.
×