문제

I am working on a slideshow using jquery cycle. One thing I notice is during slide, the user can click and skip to the next slide before it finishes animating. Does anyone know the best method of disabling "next" and "previous" buttons while the animation is occuring?

도움이 되었습니까?

해결책

Looking at the docs it looks like you could do something using the prevNextClick and after events (disable after prevNextClick and enable after after. The after event seems to be undocumented, but it appears in this demo: http://jquery.malsup.com/cycle/after.html

But if you can provide more information why you want to disable prev/next, someone might be able to give you a better solution.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top