jQuery repeated event till user clicks on it
Posted
by Lyon
on Stack Overflow
See other posts from Stack Overflow
or by Lyon
Published on 2010-04-14T06:08:57Z
Indexed on
2010/04/14
6:13 UTC
Read the original article
Hit count: 491
jQuery
Hi,
I have an animation on a partially hidden div container that will execute when the result returned from an ajax query is true. (The animation actually just brings the box into larger view, and then sliding it back in again)
$('#box').animate({'right':'-184px'}, 300, 'easeOutBounce');
$('#box').animate({'right':'-194px'}, 150, 'easeOutExpo');
How can I make this animation repeat every 4 seconds until the user clicks on $('#box')
?
Any help is greatly appreciated. Thanks :)
© Stack Overflow or respective owner