Jump to content
Search Community

Unexpected stagger behaviour

KerveCreative test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Hi. In the example codepen, I am expecting to see the white dots to stagger scale from 1 to 0, then once that animation has finished, scale from 2 + opacity 0 to scale 1 and opacity 1. Instead, it appears that the opacity is being set to 0 when the first animation is triggered. I have used the > timer marker to trigger the second animation after the first one has animated, which I would have thought would prevent the opacity being set to 0 until the second animation is triggered. Can anyone explain this behaviour and how to fix please?

See the Pen qBopQod by mattsnook (@mattsnook) on CodePen

Link to comment
Share on other sites

  • Solution

Hey there!

 

Welcome to the forums and thanks for being a Club GreenSock member. 🥳

 

'>' - this position parameter isn't needed as it's the default. When animations are added to a timeline, they'll play one after another.

 

However - you're using fromTo tweens which immediately render their starting values which is giving you unexpected results here

Give this a little watch/read through and it will all become nice and clear
 

 

 

  • Like 2
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...