Answer the question
In order to leave comments, you need to log in
How to add prev,next arrows to materializecss.com Slider?
Good afternoon, the materializecss.com/media.html framework has a Slider plugin, how to set pagination next and prev?
Answer the question
In order to leave comments, you need to log in
Scroll below and find everything
// Pause slider
$('.slider').slider('pause');
// Start slider
$('.slider').slider('start');
// Next slide
$('.slider').slider('next');
// Previous slide
$('.slider').slider('prev');
<div id = "myPrevNavButton">Назад</div>
<div id = "myNextNavButton">Вперед</div>
$("#myNextNavButton").click(function(){
$('.slider').slider('next');
});
$("#myPrevNavButton").click(function(){
$('.slider').slider('prev');
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question