62

jQuery allows use of the string values "slow", "normal", and "fast" in animations (e.g.: $('#example').fadeOut('slow');). How many milliseconds do each of these values represent?

Matt Huggins
  • 81,398
  • 36
  • 149
  • 218

3 Answers3

96

600, 400 and 200, respectively "slow", "normal", "fast". All in the docs

dylanjha
  • 2,303
  • 4
  • 28
  • 47
Nikita Rybak
  • 67,365
  • 22
  • 157
  • 181
  • Thanks, didn't see it in there. Appreciate the reference! – Matt Huggins Sep 17 '10 at 19:30
  • 2
    Just to add, there's nothing in special in `normal` like `slow` or `fast`. From the same link, `If any other string is supplied, or if the duration parameter is omitted, the default duration of 400 milliseconds is used` – Jashwant Jul 25 '12 at 06:00
11

600ms, 400ms and 200ms respectively.

Source

jamylak
  • 128,818
  • 30
  • 231
  • 230
Gazler
  • 83,029
  • 18
  • 279
  • 245
  • 1
    Thanks for adding the link. Unfortunately, it only explains the speeds of fast and slow, not normal. – Matt Huggins Sep 17 '10 at 19:31
  • 4
    Actually it is 600, 400, 200 respectively =) – Maksim Vi. Sep 17 '10 at 19:31
  • 1
    @Matt Huggins, I think "normal" is default value, which is 400. You can take a look at the source yourself (http://code.jquery.com/jquery-1.4.2.js) line 5885. – Maksim Vi. Sep 17 '10 at 19:34
  • 1
    if I recall, the docs only specify slow and fast, and any other value returns 400. So, .fadeOut('monkeyFeces') will fade out at 400 ms. (Try it) – Yahel Sep 17 '10 at 20:32
6

I would be original and answer 600, 400, 200 respectively. Since higher number of milliseconds means slower speed =) All in the source

Maksim Vi.
  • 9,107
  • 12
  • 59
  • 85