views:

91

answers:

3

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?

+6  A: 

200ms, 400ms and 600ms respectively.

Source

Gazler
Thanks for adding the link. Unfortunately, it only explains the speeds of fast and slow, not normal.
Matt Huggins
Actually it is 600, 400, 200 respectively =)
negative
@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.
negative
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)
yc
+5  A: 

200, 400 and 600. All in the docs

Nikita Rybak
+1 for linking to the docs as well.
Blair McMillan
Thanks, didn't see it in there. Appreciate the reference!
Matt Huggins
+4  A: 

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

negative
+1 for logic. Good point.
Gazler