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
Post a Comment