set jquery default animation speed

后端 未结 2 1623
天涯浪人
天涯浪人 2021-02-14 04:00

I cannot find any documentation. All I want to do it set jQuerys default animation speed. Something like this:

 $.setDefaultAnimationSpeed = 5000; //does not wor         


        
2条回答
  •  醉梦人生
    2021-02-14 04:48

    $.fx.speeds._default = 1000; // change to whatever your desired speed
    

    or

    $.fx.speeds.jojo = 1000; // adds your own speed object to jqueryspeed
    

    Reference: https://learn.jquery.com/effects/intro-to-effects/#jquery-fx

提交回复
热议问题