Jump to content
Search Community

horizontal ScrollTrigger acts weird with React

Pavel Laptev test
Moderator Tag

Recommended Posts

Hi! I'm trying to make an animation with the ScrollTrigger with React.

Each card component has the `gsap` `fromTo` function, and I'm passing the trigger element via props.

But it creates two scrolls. I'm missing something, but can't understand what.

 

Thank you in advance!

 

Demo is here https://codesandbox.io/s/brave-ishizaka-s6hysi?file=/src/Card.tsx

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