Return to Snippet

Revision: 33443
at October 8, 2010 21:01 by ponjoh


Initial Code
function loopAnimation() {
    $('.element').animate({
      marginTop: '+=20',
    }, 500, function() {
    	$('#window').animate({
    	  marginTop: '-=20',
    	}, 500, function() {
    		loopAnimation()
    	});
    });
}

loopAnimation()

Initial URL

                                

Initial Description

                                

Initial Title
Looped animation

Initial Tags
jquery

Initial Language
jQuery