Jump to content
Search Community

How to achieve an automatically horizontal scrolling in React?

anthonyy test
Moderator Tag

Recommended Posts

Hi @anthonyy welcome to the forum!

 

Seems like you're looking for the Seamlessly loop elements along the x-axis, the demo you shared uses a really old version 1.18.0 and were are currently at version 3.12.5! You could upgrade the code to the latest version, but the helper function has a lot more features that you might also like.

 

CodePen isn't always ideal for these tools, so here are some Stackblitz starter templates that you can fork and import the gsap-trial NPM package for using any of the bonus plugins. Here are starter templates for React (please read this article!) or Next. Hope it helps and happy tweening! 

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