using jQuery animate a div from top to bottom?

Ramsey

New Member
i am using this code and it's working correct moving from top to bottom but i want to move continuously not single time. Thanks!!\[code\] $(document).ready(function(){ var bodyHeight = $('body').height(); var footerOffsetTop = $('#moving').offset().top; var topToBottom = bodyHeight -footerOffsetTop; $('#moving').css({top:'auto',bottom:topToBottom}); $("#moving").delay(100).animate({ top: '100px', }, 3000); })\[/code\]
 
Back
Top