admin管理员组文章数量:1414908
I have seen $.fx.step. backgroundPosition = function(fx) {...}
in some javascript snippet. I can't find much infomation about $.fx
.
Can anyone provide a link to some detailed tutorial on $.fx
?
PS: I have read this: .html
But as a javascript newbie, I didn't quite get the point of it.
I have seen $.fx.step. backgroundPosition = function(fx) {...}
in some javascript snippet. I can't find much infomation about $.fx
.
Can anyone provide a link to some detailed tutorial on $.fx
?
PS: I have read this: http://onwebdev.blogspot./2011/02/jquery-fx-object.html
But as a javascript newbie, I didn't quite get the point of it.
Share Improve this question asked May 12, 2013 at 11:22 CDTCDT 10.7k21 gold badges73 silver badges99 bronze badges 1-
In your second snippet,
fx
is just a parameter to the function, it's not anything special. – Barmar Commented May 12, 2013 at 11:25
3 Answers
Reset to default 6In short: fx
is the basis of all jQuery effects like .animate
, .hide
, etc.
Code like the one you posted is meant to extend jQuery.fx
.
You can see more details about $.fx HERE
A new jQuery plugin that supports animating CSS colors of elements by using the new jQuery.fx.step.
Here is stated, that fx
object is declared as follows:
fx: function( elem, options, prop ) {
this.options = options;
this.elem = elem;
this.prop = prop;
if ( !options.orig ) {
options.orig = {};
}
}
read more that link.
本文标签: javascriptjQueryWhat is jQueryfxStack Overflow
版权声明:本文标题:javascriptjQuery - What is jQuery.fx? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745169286a2645872.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论