Jump to content
GreenSock

iAmWayne

How to animate circle one at a time based on scroll?

Moderator Tag
Go to solution Solved by Cassie,

Recommended Posts

How do I animate the circles one at a time? Im using react, the circles works just perfectly fine but the content animates at the same time and not based on the scroll.

 

 

**You can scroll to view the content

See the Pen abjjNWm by iamwayne (@iamwayne) on CodePen

Link to comment
Share on other sites

Thanks a lot, that's what I need

Link to comment
Share on other sites

Is it possible to animate an element's height from the top (0px) to the center of the screen and stay centered while scrolling until it reaches the parent element's height?

 

I think I'm doing it right but the line doesn't seem to work out. I'm thinking when the line reaches the circles, the circles would animate.

 

here's the codepen link.

See the Pen abjjNWm by iamwayne (@iamwayne) on CodePen


 

thanks :)

Link to comment
Share on other sites

  • Solution

Sure, you can add start and end markers wherever you need.

It'll just have to be a little more custom!

 

See the Pen JjBeWPO?editors=0010 by GreenSock (@GreenSock) on CodePen

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