Jump to content
Search Community

GSAP Slider with React

TaiwoJazz test
Moderator Tag

Recommended Posts

Hi,

 

Sorry at least I never created a slider in React, which is odd since I've been making apps and components with React for almost 7 years now 🤷‍♂️

 

My take on the subject is that it shouldn't be too complicated though, just create the methods for animating the previous and next slide, some state to keep track of the amount of slides, the current one, whether the slider is animating or not, etc. and then just map through an array to add the slides.  My take is also that this should be it's own component and each slide could be a component depending on the complexities of your setup.

 

I'll keep the idea in mind and I'll try to create a basic example when I have some time ;)

 

Happy Tweening!

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