Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Narendra Verma

Stragger not working

Recommended Posts

Hello,

 

I have a simple code and I have to use stragger. I have to display the each box one by one. I don't know where is the issue with my code. I checked the videos and refer this link https://greensock.com/docs/v3/Staggers  .

Inline css is displaying even I set the delay also to check.

 

Would you help me out where is the issue?

See the Pen rNMKrRY by Narendra_verma (@Narendra_verma) on CodePen

Link to post
Share on other sites

Hey @Narendra Verma

 

The elements you are trying to animate to autoAlpha: 1 with a .to()-tween are visible and have an opacity of 1, so your tween basically tweens them from visible to visible. You should set them to be invisible before, if you want to use a .to()-tween.

 

See the Pen qBaKMEQ by akapowl (@akapowl) on CodePen

  • Like 5
Link to post
Share on other sites

@akapowl,   I hadn't known about the invisible part. Yes, it's working. 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.

×