3

Is there a jQuery add on that has slideUp and slideDown effects with damper effect? That is, the change of size starts with a rather quick speed, and slows down towards the end of the movement.

sawa
  • 165,429
  • 45
  • 277
  • 381

1 Answers1

2

You can pass in an easing to use as a second argument...

$("#something").slideDown(500, "linear");

jQuery includes swing and linear, with the former being the default.

To get the behaviour you describe, use easeOut, which is available in jQuery UI (which you've tagged the question).

alex
  • 479,566
  • 201
  • 878
  • 984
  • `slideDown` does not seem to interpret the second argument as easing, but I figured out that I can use something like `animate({height: 'show'}, 500, 'easeOutExpo')` using jquery.easing. – sawa Oct 01 '12 at 12:31