transition-native-debug.js revision 576e5aadaa60b824ce0a3875d3551ca3151a1957
/**
* The Native Transition Utility provides an API wrapper for CSS transitions.
* It is also the base module for the timer-based transition module.
* @module node
*/
/**
* Provides the base Transition class.
*
* @module node
* @submodule transition-native
*/
/**
* A class for constructing transition instances.
* @class Transition
* @for Transition
* @constructor
* @extends Base
*/
var TRANSITION = '-webkit-transition',
TRANSITION_CAMEL = 'WebkitTransition',
TRANSITION_PROPERTY = '-webkit-transition-property',
TRANSITION_DURATION = '-webkit-transition-duration',
TRANSITION_TIMING_FUNCTION = '-webkit-transition-timing-function',
TRANSITION_DELAY = '-webkit-transition-delay',
TRANSITION_END = 'webkitTransitionEnd',
Transition = function() {
};
Transition.useNative = false;
Transition.useNative = true;
}
Transition._nodeAttrs = {};
Transition.prototype = {
var anim = this;
}
return anim;
},
var anim = this,
val,
attr;
if (!attrs) {
}
}
} else {
}
}
if (typeof val === 'function') {
}
if (!duration) { // make async and fire events
duration = 0.00001;
}
};
}
}
},
/**
* Starts or an animation.
* @method run
* @chainable
*/
var anim = this;
type: 'transition:start',
});
}
return anim;
},
_start: function() {
this._runNative();
},
return dur + 's';
},
_runNative: function(time) {
var anim = this,
cssText = '',
attr,
name;
// preserve existing transitions
if (cssTransition !== 'all') {
}
// run transitions mapped to this instance
}
}
// only one native end event per node
if (!node._hasTransitionEnd) {
node._hasTransitionEnd = true;
}
},
var anim = this,
data = {
type: 'transition:end',
};
if (callback) {
setTimeout(function() { // IE: allow previous update to finish
}, 1);
}
},
_endNative: function() {
}
},
_onNativeEnd: function(e) {
var node = this,
if (anim) {
Transition._count--;
type: 'propertyEnd',
});
anim._endNative();
}
}
},
destroy: function() {
this.detachAll();
this._node = null;
}
};
Y.Transition = Transition;
/**
Animate one or more css properties to a given value.
<pre>example usage:
Y.one('#demo').transition({
duration: 1, // seconds
easing: 'ease-out',
height: '10px',
width: '10px',
value: 0,
duration: 2,
easing: 'ease-in'
}
});
</pre>
@for node
@method transition
@param {Object} An object containing one or more style properties, a duration and an easing.
@chainable
*/
var anim = this._transition;
} else {
}
return this;
};