Search code examples
jqueryeasing

Removing jQuery default easing


I am using .animate() to animate my picture gallery.But when I use the hide function it puts its own easing effect which is undesirable since I want a linear easing. I tried the following but its not working.

$(picArray[picArrayIndex - 1]).hide( '500','linear',function(){
    $(picArray[picArrayIndex]).show();
     });

Any way around this?


Solution

  • Try this :

    $(picArray[picArrayIndex - 1]).hide({duration : 500, easing : 'linear', complete: function(){your things}})
    

    Here's the list of option you can use : http://api.jquery.com/hide/#hide-options