Infinite Loop to JS driven text zoom animation

I have this code on a page which zooms in, zooms out and then restores the original text size.

I want to know how to slow down and endlessly loop this animation.

Below is the javascript –

$(".text1 h1 span").animate({"zoom": "1.2", "-ms-zoom": "1.2", "top":"-5px"}, function(){
                $(".slide5 h1 span").animate({"zoom": "0.8", "-ms-zoom": "0.8", "top":"5px"}, function(){
                $(".slide5 h1 span").animate({"zoom": "1", "-ms-zoom": "1", "top":""});                                                                       
                });                                                           
    });

Please help.


Source: html5

Leave a Reply