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?
Asked
Active
Viewed 4.0k times
62

Matt Huggins
- 81,398
- 36
- 149
- 218
-
I dont think `normal` is a special arguement. But since you supplied, other than 'slow' / 'flow' , it considered 400. – Jashwant Jul 25 '12 at 05:58
-
@Jashwant - no need to make invalid assumptions. I did research the docs, and unless they've been updated since I asked this question, the millisecond values were not mentioned. – Matt Huggins Jul 30 '12 at 13:38
-
I didnt get you. Where am I making invalid assumption ? :O – Jashwant Jul 30 '12 at 15:00
-
You said, "it deserves -1 for no research." But I did research. – Matt Huggins Jul 30 '12 at 15:30
-
I removed that :) I just said what I thought. – Jashwant Jul 30 '12 at 15:52
3 Answers
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
-
-
2Just 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
-
1Thanks 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
-
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
-
1if 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