How can I set multiple arrows for a glider?
karlosmrez opened this issue · 1 comments
karlosmrez commented
I have created a navi with Glider.js.
When I click on "Category 1", it slides to "Category 2", but when I click on "Category 2", it doesn´t slide to the end.
How can I slide to the end of the slide, if I defined 2 diferents next-arrows in HTML?
https://codepen.io/karlosmrez/pen/QWQpwrv?editors=1010
(X returns back)
karlosmrez commented
I found a solution adding "onclick" in HTML:
<span class="c-nav__item c-nav__item--menu" onclick="next()">A 1 ></span>
And this in JavaScript:
function next() {
glide.scrollItem(glide.slide + 1)
}