mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery fx: adding jQuery.fx.def as default speed for animations
This commit is contained in:
parent
42161a1e34
commit
87758bbe69
@ -218,7 +218,7 @@ jQuery.extend({
|
|||||||
|
|
||||||
opt.duration = (opt.duration && opt.duration.constructor == Number ?
|
opt.duration = (opt.duration && opt.duration.constructor == Number ?
|
||||||
opt.duration :
|
opt.duration :
|
||||||
jQuery.fx.speeds[opt.duration]) || 400;
|
jQuery.fx.speeds[opt.duration]) || jQuery.fx.speeds.def;
|
||||||
|
|
||||||
// Queueing
|
// Queueing
|
||||||
opt.old = opt.complete;
|
opt.old = opt.complete;
|
||||||
@ -404,7 +404,8 @@ jQuery.fx.prototype = {
|
|||||||
jQuery.extend( jQuery.fx, {
|
jQuery.extend( jQuery.fx, {
|
||||||
speeds:{
|
speeds:{
|
||||||
slow: 600,
|
slow: 600,
|
||||||
fast: 200
|
fast: 200,
|
||||||
|
def: 400 //default speed
|
||||||
},
|
},
|
||||||
step: {
|
step: {
|
||||||
scrollLeft: function(fx){
|
scrollLeft: function(fx){
|
||||||
|
Loading…
Reference in New Issue
Block a user