TaiwoJazz Posted January 25, 2023 Share Posted January 25, 2023 Will appreciate if the mods or anyone in this great community can post links to demos of testimonial sliders build in react. Already got some in vanilla JS but is hell converting it to React. Thanks in advance. @Rodrigo 1 Link to comment Share on other sites More sharing options...
Rodrigo Posted January 25, 2023 Share Posted January 25, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now