javascript/jQuery - What is jQuery.fx?

后端 未结 3 1651
攒了一身酷
攒了一身酷 2021-01-03 13:48

I have seen $.fx.step. backgroundPosition = function(fx) {...} in some javascript snippet. I can\'t find much infomation about $.fx.

Can an

相关标签:
3条回答
  • 2021-01-03 14:12

    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.

    0 讨论(0)
  • 2021-01-03 14:13

    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.

    0 讨论(0)
  • 2021-01-03 14:30

    In 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.

    0 讨论(0)
提交回复
热议问题