I doubt you’re going to get a good answer give the vagueness of your question, but I’ll give you a start. For one, you could use one of several good sliders that exist. For a start, I’ll recommend three that I really like: Slidr, Slick, and Flickity.
The second option is that you could build a custom slider of sorts. Now, given the way you’ve asked the question, I am going to assume you don’t want to do this. Nonetheless, you could stack all of the slides on top of each other and use CSS transforms to slide them in from different directions simply using translateX()
, and triggering these animations using event listeners on click
. This is obviously a very stripped down explanation, but is essentially what a very simple slider like Slidr does.
1
solved How can i do that in javascript? [closed]