Click on slide to make it an active #498
-
Hi, I would like to know if there’s any option to click anywhere on the slides and navigate to it automatically? Without the buttons on the side. I have view of 3 slides inside the carousel and I want to let the us er the option to click on the right/left slides to be able and navigate there without using the buttons. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Use the |
Beta Was this translation helpful? Give feedback.
-
enable data-splide-hash and label your slides with numbers $('.splide__slide').click(function() { |
Beta Was this translation helpful? Give feedback.
Use the
Splide#go()
method and theclick
event:https://splidejs.com/guides/apis/#go
https://splidejs.com/guides/events/#click