> thought i should finally clear it up:
>
> I'm using a lot the animate() function, using a callback, and no
> easing parameter. Such as:
>
> $('div').animate({width: 400},'fast', function(){
> $(this).addClass('visible');
>
> });
>
> i 'm wondering if i should actually leave an empty argument for the
> easing parameter (because i want the "linear" easing method)
>
> $('div').animate({width: 400},'fast',null, function(){
> $(this).addClass('visible');
>
> });
>
> or if i can just do like i did in the first example , skip it
> entirely?
You can call the animate function either way. jQuery will figure out
what you mean by looking at the number and type of arguments passed.
No comments:
Post a Comment