- // Each step of an animation
- z.step = function(firstNum, lastNum){
- var t = (new Date()).getTime();
-
- if (t > options.duration + z.startTime) {
- z.now = lastNum;
- z.a();
-
- if (elem.curAnim) elem.curAnim[ prop ] = true;
-
- var done = true;
- for ( var i in elem.curAnim )
- if ( elem.curAnim[i] !== true )
- done = false;
-
- if ( done ) {
- if ( options.display != null ) {
- // Reset the overflow
- y.overflow = options.overflow;
-
- // Reset the display
- y.display = options.display;
- if ( jQuery.css(elem, "display") == "none" )
- y.display = "block";
- }
-
- // Hide the element if the "hide" operation was done
- if ( options.hide )
- y.display = "none";
-
- // Reset the properties, if the item has been hidden or shown
- if ( options.hide || options.show )
- for ( var p in elem.curAnim )
- jQuery.attr(y, p, elem.orig[p]);
- }