Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Nivo Slider Autoplay and start slide on specifc action?

How can I make Nivo slider start only when I click on a specific link or go to the specific dot slide and stop there. (by dot I meant number of slide (nivo-controlNav))

Thank you!

like image 812
Adrian Florescu Avatar asked Jan 18 '23 13:01

Adrian Florescu


1 Answers

If I'm reading you correctly, here's how I figure it.

When you set up Nivo set the manualAdvance property to true. That will set Nivo to only transition when the nav is clicked.

See the documentation here

So it would be something like:

$('#slider').nivoSlider({
    // Your settings here
    manualAdvance:true
});
like image 52
hradac Avatar answered Feb 17 '23 17:02

hradac