简体   繁体   English

首选jQuery插件以实现自定义宽松?

[英]Preferred jQuery plugin for custom easing?

I see that both jQuery Easing plugin and jquery UI plugin provide custom easing. 我看到jQuery Easing插件和jquery UI插件都提供了自定义缓动。 Is there any difference between the two? 两者之间有什么区别吗? Do javascript developers prefer one to another? JavaScript开发人员是否更喜欢另一个? My gut feeling was that if I only needed easing without any extra functionalities jQuery Easing would be the way to go, but I thought it wouldn't hurt to ask. 我的直觉是,如果我只需要在没有任何其他功能的情况下放松,那么jQuery Easing将是必经之路,但是我认为问这个问题不会有任何伤害。

Query Easing Plugin: http://gsgd.co.uk/sandbox/jquery/easing/ 查询轻松插件: http : //gsgd.co.uk/sandbox/jquery/easing/

jQuery UI's documentation says: jQuery UI的文档说:

The excellent jQuery easing plugin porting Robert Penners advanced easing functions to jQuery has been included into effects.core.js. 将Robert Penners的高级缓动功能移植到jQuery的优秀jQuery缓动插件已包含在effects.core.js中。

Since jQuery UI's core effects plugin (jquery.effects.core.js) is almost three times larger than jQuery easing plugin (jquery.easing.1.3.js), ie 23kb vs 7.9kb for uncompressed javascript file, if all one needs is advanced easing, jQuery easing plugin can be a better or at least cleaner choice. 由于jQuery UI的核心效果插件(jquery.effects.core.js)几乎是jQuery宽松插件(jquery.easing.1.3.js)的三倍,即,如果满足所有需求,则23kb vs 7.9kb的未压缩javascript文件缓动,jQuery缓动插件可以是更好的选择,或者至少是更清洁的选择。 jQuery UI's core effects plugin provides color animations and class transitions in addition to advanced easing which account for it's larger file size. jQuery UI的核心效果插件除了提供高级缓动外,还提供了彩色动画和类过渡,这是文件较大的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM