Commit 25802e8b authored by John Resig's avatar John Resig

Added a step callback to be executed on every step of an fx animation.

parent ccabf282
...@@ -373,7 +373,8 @@ jQuery.extend({ ...@@ -373,7 +373,8 @@ jQuery.extend({
// The users options // The users options
z.o = { z.o = {
duration: options.duration || 400, duration: options.duration || 400,
complete: options.complete complete: options.complete,
step: options.step
}; };
// The element // The element
...@@ -384,6 +385,9 @@ jQuery.extend({ ...@@ -384,6 +385,9 @@ jQuery.extend({
// Simple function for setting a style value // Simple function for setting a style value
z.a = function(){ z.a = function(){
if ( options.step )
options.step.apply( elem, [ z.now ] );
if ( prop == "opacity" ) { if ( prop == "opacity" ) {
if (z.now == 1) z.now = 0.9999; if (z.now == 1) z.now = 0.9999;
if (window.ActiveXObject) if (window.ActiveXObject)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment