diff options
author | John Resig <jeresig@gmail.com> | 2006-08-22 05:35:48 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2006-08-22 05:35:48 +0000 |
commit | 25802e8bd07f6c50df2159a031f005950f509819 (patch) | |
tree | 440650b184734ec178f9883a403ee3ed33c665ad /src | |
parent | ccabf2823b528c09455432cafdb504c6a0216a18 (diff) | |
download | jquery-25802e8bd07f6c50df2159a031f005950f509819.tar.gz jquery-25802e8bd07f6c50df2159a031f005950f509819.zip |
Added a step callback to be executed on every step of an fx animation.
Diffstat (limited to 'src')
-rw-r--r-- | src/fx/fx.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fx/fx.js b/src/fx/fx.js index de65cfa29..eb27c3a4b 100644 --- a/src/fx/fx.js +++ b/src/fx/fx.js @@ -373,7 +373,8 @@ jQuery.extend({ // The users options z.o = { duration: options.duration || 400, - complete: options.complete + complete: options.complete, + step: options.step }; // The element @@ -384,6 +385,9 @@ jQuery.extend({ // Simple function for setting a style value z.a = function(){ + if ( options.step ) + options.step.apply( elem, [ z.now ] ); + if ( prop == "opacity" ) { if (z.now == 1) z.now = 0.9999; if (window.ActiveXObject) |