Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent cycle plugin to autoplay?

Tags:

jquery-cycle

Im using cycle plugin and its working well. But the slider keeps sliding and i dont know what option should i use to prevent it autoplay.

$('#thumbs').cycle({
            fx: 'scrollHorz',
            prev: '.thumbPrev',
            next: '.thumbNext'
        });

I also checked cycle's options reference http://jquery.malsup.com/cycle/options.html but i did not found anything usefull..

like image 555
Ramon Vasconcelos Avatar asked Nov 24 '25 03:11

Ramon Vasconcelos


1 Answers

I found the solution

$(elem).cycle({
    timeout: 0 //milliseconds between slide transitions (0 to disable auto advance)
});

timeout is standard defined 4000

like image 143
Ramon Vasconcelos Avatar answered Nov 25 '25 19:11

Ramon Vasconcelos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!