I cannot find any documentation. All I want to do it set jQuerys default animation speed. Something like this:
$.setDefaultAnimationSpeed = 5000; //does not work
$('elem').fadeIn(); // takes 5 seconds
$('elem').animate({
foo : bar
}); // also takes 5 seconds
Thanks folks!
$.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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With