Jump to content
Search Community

Verstical Card Slider with Buttons and loop

Mlnto test
Moderator Tag

Recommended Posts

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

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

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