Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Aug 22, 2006
1 parent ccabf28 commit 25802e8bd07f6c50df2159a031f005950f509819
Showing with 5 additions and 1 deletion.
  1. +5 −1 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)

0 comments on commit 25802e8

Please sign in to comment.
You can’t perform that action at this time.