微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Default Animation Speed

程序名称:Default Animation Speed

授权协议: 未知

操作系统: 未知

开发语言:

Default Animation Speed 介绍

This is a very simple plugin that allows you to set the default animation
duration for all jQuery animations. As of this writing, jQuery 1.2.1 uses a
hard-coded value of 400 milliseconds, with no-built in way to set the default
(although it is easy enough to get the default.) I needed to be able to set
this default globally and on-the-fly for an internal company project, so I
decided to do it “the right way” and release it in case anyone else has the
same problem.

The plugin adds one function to the global jQuery object (it is not
chainable.) It accepts a single parameter, which is any valid animation speed
setting.

Calling the function without any parameters or with invalid value will set the
animation speed back to the default. The function returns the default
animation speed as an integer.

You call the function like this:

$.setDefaultAnimationSpeed("slow");

Default Animation Speed 官网

http://plugins.jquery.com/project/default-animation-speed

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐