It's quite easy:

var el = $('#mine');
var animateNonStop = function(){
   el.animate({ width:100 }).animate({width: 50 }, function(){
      animateNonStop();
   })
};
//start it up
animateNonStop();

which is similar to

var el = $('#mine');
(function(){
   el.animate({ width:100 }).animate({width: 50 }, function(){
      arguments.callee();
   });
})();

which can also be written as

$('#my').each(function(){
  var loop = arguments.callee;
  $(this)
    .animate({ fontSize: '20px' })
    .animate({ fontSize: '10px' }, function(){
      loop.call(this);
   })
});

cheers,
- ricardo

On Apr 16, 1:41 pm, carmit_levi <carmit3l...@gmail.com> wrote:
> hi
> non stop effect for example if i want to design a "non -stop" coloring
> text but not with all color i want it to change from blue to red
> repeatedly
>
> look here
>
> http://rainbow.arch.scriptmania.com/
>
> do i have "non-stop" effects in jquery?
>
> the option to animate something repeatedly?
>
> like make the font bigger and smaller all the time?
>
> animate a text from red to yellow and orange all the time it is on
> show...
>
> tnx

Reply via email to