Jump to content
Search Community

Animating each element combined with timeline

Sveninyo test
Moderator Tag

Go to solution Solved by Carl,

Recommended Posts

  • Solution

thanks for the demo.

 

Some issues with what you had

  • You created 1 timeline outside of the forEach loop.
  • Inside the loop you were creating tweens that had ScrollTrigger options but no animation settings
  • outside the loop you were creating 2 tweens that had nothing to do with what was happening inside the loop.

Possibly just some formatting issues crept in over time.

 

What you want is to create a timeline for each section with it's own ScrollTrigger settings and tweens as shown below

 

See the Pen ZEoyrXL?editors=0110 by snorkltv (@snorkltv) on CodePen

 

also your .fade elements all started with an opacity of 1 so animating to 1 wasn't doing anything. I set their opacity:0 in the css.

  • 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.
×
×
  • Create New...