I need to know how to infinitely loop this animation. It is a text scroll animation and I need it to repeat after it\'s finished.
Here is the jQuery:
probably the simplest solution.
var movement1 = function(speed){
$(".mydiv").animate({"top": "100px"}, speed,function(){
movement2(speed)
});
}
var movement2 = function(speed){
$(".mydiv").animate({"top": "120px"}, speed,function(){
movement1(speed)
});
}
movement1(1000);
this is eventually call each other infinitely.