How to prevent script from starting new animation while old one still lasts???
How can I make the script below "stop responding" when it's already animating?
I want the script below to animate ONCE and STOP animating (even if mouse is still on element #s2) until I take mouse off it and hover again. This is what I'm using: http://jquery.malsup.com/cycle/
- <script type="text/javascript">$('#s2').cycle({
- fx: 'scrollDown',
- timeout: 0,
- speedIn: 2000,
- speedOut: 500,
- easeIn: 'bounceout',
- easeOut: 'backin',
- delay: -2000,
- prevNextEvent: 'mouseover.cycle',
- next: '#s2'
- });</script>