Mlnto Posted August 18, 2022 Share Posted August 18, 2022 Hello, i try to add a previous and next button to the slides. So far i have this code, which works nearly like it should, but if I the direction is to the top and I click on the "prev" buttons, all the slides jumps over the page to a new direction, and then it works. Is it possible, to just reverse the function on click and the other way round? See the Pen mdxaGGz by Mlnto (@Mlnto) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted August 18, 2022 Share Posted August 18, 2022 Hey there, these sort of things are tricky. Restructuring this a bit is probably the way to go - You could probably learn a bunch from this demo and the following thread - See the Pen ZELPxWW by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted August 18, 2022 Share Posted August 18, 2022 I'm not really certain how to make the animation play and also have next and previous buttons. I'd have to dig in a bit more and unfortunately I don't have the time to do that right now. I hope these links help give a little bit of a nudge in the right direction though. Maybe someone else can jump in with more direct guidance. 💚 Link to comment Share on other sites More sharing options...
Mlnto Posted August 23, 2022 Author Share Posted August 23, 2022 Many thanks for your reply, but this doesn`t help. Perhaps someone else has an idea? Link to comment Share on other sites More sharing options...
GSAP Helper Posted August 23, 2022 Share Posted August 23, 2022 That demo and the linked thread are probably the most expert guidance on how to manage infinite carousels that you're likely to find around here. If you've delved into them and it's not helping it may be an idea to post in the "Jobs & Freelance" forum for paid consulting? 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