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?
views:
91answers:
3Thanks for adding the link. Unfortunately, it only explains the speeds of fast and slow, not normal.
Matt Huggins
2010-09-17 19:31:17
Actually it is 600, 400, 200 respectively =)
negative
2010-09-17 19:31:25
@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
2010-09-17 19:34:11
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
2010-09-17 20:32:09
+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
2010-09-17 19:36:58