“慢”、“正常”和“快”在 jQuery 中代表多少毫秒?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3738354/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How many milliseconds do "slow", "normal", and "fast" represent in jQuery?
提问by Matt Huggins
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?
jQuery 允许在动画中使用字符串值“slow”、“normal”和“fast”(例如:)$('#example').fadeOut('slow');
。这些值中的每一个代表多少毫秒?
回答by Nikita Rybak
600, 400 and 200, respectively "slow", "normal", "fast". All in the docs
600、400 和 200,分别是“慢”、“正常”、“快”。全部在文档中
回答by Maksim Vi.
I would be original and answer 600, 400, 200 respectively. Since higher number of milliseconds means slower speed =) All in the source
我会是原创的,分别回答 600、400、200。因为更高的毫秒数意味着更慢的速度 =)全部在源中