Category Archives: jQuery

Simple Text Sliding

This will slide the according div id.


function ani(){
    $('#text').animate(
        {'margin-left': '1000px'}, 
        10000, // duration
        function(){
            $('#text').css('margin-left','-100px');
            ani();
        });
     $("#text").hover(function(){
    $("#text").stop();
  });    
    $("#text").mouseout(function(){
    ani();
  });
    }
ani();