开发者

Stop Nivo Slider Autoplay and start slide on specifc action?

开发者 https://www.devze.com 2023-04-11 14:12 出处:网络
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开发者_JAVA百科 number of slide (nivo-controlNav))

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开发者_JAVA百科 number of slide (nivo-controlNav))

Thank you!


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
});
0

精彩评论

暂无评论...
验证码 换一张
取 消