Open full view…

Convert data-hash to Slide Index

Tue, 09 Jan 2018 05:03:03 GMT

Over on [this post](http://idangero.us/swiper/forum/#!/general:how-can-i-make-a-custom-has) it was recommended to convert the data-hash of a slide to the slide's index to be able to use slideTo(). I can't find anything in the API docs for how to do that. Before I write a custom script, is there something I'm missing? I need to link to each slide from outside the slider on the same page. I've tried just adding the data-hash value as an href but it only works if linking from another page. Thanks, Jack