Jump to content
GreenSock

hanifrev

How to create forEach loop for scrollTrigger in ReactJS?

Go to solution Solved by Rodrigo,

Recommended Posts

Hey guys, I'm new in here, so I want to create something like this (on image) but in ReactJS, can anyone help?

image.png.d079d2c63a4c88963ac07a818d69e6d2.png

Thanks

Link to comment
Share on other sites

  • hanifrev changed the title to How to create forEach loop for scrollTrigger in ReactJS?

@Rodrigo hey thanks for the answer, I appreciate it. But I mean I want something like this:

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

 

so, I want the box (element) animated/moving only when I scroll it to their view, that's the point that I'm still confuse to make it into React

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.
×