Stop jQuery animation when a modal layer (or tab changes) appear top of the animation -


i writing jquery animation plugin using sequence of images.. need pause animation when modal layer opens or tab changes on top of animation. can't figure out tie animation stop..

here doing..

http://designs.phases.dk/flip/

the animation starts once images loaded.. if click on link "open popup" modal layer appears.. animation still continues.. trying find way stop it..

you can trigger "pause" link's click event pause animation.

$('.fancybox').click(function(){       $('.pause').trigger('click'); } 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -