transition-native.js revision 5b1c89071eae2ae83f92260d7a50f9ad4e574f3d
4ae0e76a4cee1de65ce705b420c9efe68908fb18Matt Sweeney* Provides the transition method for Node.
4ae0e76a4cee1de65ce705b420c9efe68908fb18Matt Sweeney* Transition has no API of its own, but adds the transition method to Node.
4ae0e76a4cee1de65ce705b420c9efe68908fb18Matt Sweeney* @module transition
4ae0e76a4cee1de65ce705b420c9efe68908fb18Matt Sweeney* @requires node-style
4ae0e76a4cee1de65ce705b420c9efe68908fb18Matt Sweeney * A class for constructing transition instances.
4ae0e76a4cee1de65ce705b420c9efe68908fb18Matt Sweeney * Adds the "transition" method to Node.
4ae0e76a4cee1de65ce705b420c9efe68908fb18Matt Sweeney * @class Transition
4ae0e76a4cee1de65ce705b420c9efe68908fb18Matt Sweeney * @constructor
4ae0e76a4cee1de65ce705b420c9efe68908fb18Matt Sweeney property = property.replace(/-([a-z])/gi, function(m0, m1) {
4ae0e76a4cee1de65ce705b420c9efe68908fb18Matt Sweeney property = property.replace(/([A-Z]?)([a-z]+)([A-Z]?)/g, function(m0, m1, m2, m3) {
4ae0e76a4cee1de65ce705b420c9efe68908fb18Matt Sweeney var str = ((m1) ? '-' + m1.toLowerCase() : '') + m2;
var anim = this;
return anim;
var anim = this,
dur,
attr,
val;
if (!attrs) {
setTimeout(function() {
var anim = this,
var attr,
var anim = this,
data = {
return anim;
_start: function() {
this._runNative();
var anim = this,
attr,
name;
var anim = this,
data = {
if (node) {
if (callback) {
} else if (callback) {
value = node.ownerDocument.defaultView.getComputedStyle(node, '')[Transition._toCamel(TRANSITION_PROPERTY)];
_onNativeEnd: function(e) {
var node = this,
data,
if (anim) {
data = {
destroy: function() {
var anim = this,
if (node) {
* @param {Object} config An object containing one or more style properties, a duration and an easing.
prop;
config = null;
if (typeof name !== 'string' && !name.push) { // named effect or array of effects supercedes default
if (fn) {
if (callback) {
config = null;
if (typeof name !== 'string' && !name.push) { // named effect or array of effects supercedes default
this._hide();
* @param {Object} config An object containing one or more style properties, a duration and an easing.
* @param {Function} callback A function to run after the transition has completed. The callback fires
node;
name = null;
if (on) {
this._show();
node;
fadeOut: {
fadeIn: {
sizeOut: {
sizeIn: {
on: {
start: function() {
end: function() {
delete this._transitionOverflow;