I have made code but I want it to be execute repeatedly till the user is on the page.
Here is my code—
$(document).ready(
function animate() {
$('div.lightining').stop().animate({
backgroundColor: '#789'
}, 1050, 'linear', function() { });
}
function () { $('div.lightining').cycle(animate()); }
);
I want that the script to repeat itself after getting completed.
Does someone get any ideas of achieving this. Please help me out!
Thanks in advance!
1 Answer