> i've had this question lying for so long in the bottom of my mind, i > 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.