I’m trying to implement a jQuery function with an infinite loop to animate a div. I can’t figure out how to do it. This is my code:
$(document).ready(function () {
$('#divers').animate({
'margin-top': '90px'
}, 6000).animate({
'margin-top': '40px'
}, 6000);
});