Lines Matching defs:anim

3587     "anim": ["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"],
18193 var anim = this;
18194 anim._node = node;
18195 if (!anim._running && config) {
18196 anim._config = config;
18197 node._transition = anim; // cache for reuse
18199 anim._duration = ('duration' in config) ?
18200 config.duration: anim.constructor.DEFAULT_DURATION;
18202 anim._delay = ('delay' in config) ?
18203 config.delay: anim.constructor.DEFAULT_DELAY;
18205 anim._easing = config.easing || anim.constructor.DEFAULT_EASING;
18206 anim._count = 0; // track number of animated properties
18207 anim._running = false;
18211 return anim;
18215 var anim = this,
18246 if (attr.transition !== anim) {
18251 anim._count++; // properties per transition
18255 anim._duration) || 0.0001;
18261 anim._delay,
18263 easing: config.easing || anim._easing,
18265 transition: anim
18276 anim._onNativeEnd.call(node, {
18285 var anim = this,
18286 attrs = Transition._nodeAttrs[Y.stamp(anim._node)];
18290 anim._count--;
18325 var anim = this,
18326 node = anim._node,
18327 config = anim._config,
18334 if (!anim._running) {
18335 anim._running = true;
18341 anim.initAttrs(anim._config);
18343 anim._callback = callback;
18344 anim._start();
18348 return anim;
18362 var anim = this,
18363 node = anim._node,
18392 if ((attr = attrs[name]) && attr.transition === anim) {
18394 duration += anim._prepDur(attr.duration) + ',';
18395 delay += anim._prepDur(attr.delay) + ',';
18413 node.addEventListener(TRANSITION_END, anim._onNativeEnd, '');
18423 var anim = this,
18424 node = anim._node,
18425 callback = anim._callback,
18426 config = anim._config,
18435 anim._running = false;
18436 anim._callback = null;
18478 anim = (attr) ? attr.transition : null,
18482 if (anim) {
18483 anim.removeProperty(name);
18484 anim._endNative(name);
18485 config = anim._config[name];
18498 if (anim._count <= 0) { // after propertyEnd fires
18499 anim._end(elapsed);
18506 var anim = this,
18507 node = anim._node;
18510 node.removeEventListener(TRANSITION_END, anim._onNativeEnd, false);
18511 anim._node = null;
18547 anim = (transitionAttrs) ? transitionAttrs.transition || null : null,
18578 if (anim && !anim._running) {
18579 anim.init(this, config);
18581 anim = new Transition(this._node, config);
18584 anim.run(callback);
18604 var _wrapCallBack = function(anim, fn, callback) {
18607 fn.call(anim);
18610 callback.apply(anim._node, arguments);
19613 var anim = this;
19614 anim._initAttrs();
19616 Transition._running[Y.stamp(anim)] = anim;
19617 anim._startTime = new Date();
19622 var anim = this;
19623 delete Transition._running[Y.stamp(anim)];
19624 anim._startTime = null;
19633 var anim = this,
19634 node = anim._node,
19635 config = anim._config,
19652 if ((attribute = attrs[name]) && attribute.transition === anim) {
19674 setter(anim, name, attribute.from, attribute.to, t - delay, d - delay,
19679 anim._count--;
19687 if (!allDone && anim._count <= 0) {
19689 anim._end(elapsed);
19690 anim._endTimer();
19700 var anim = this,
19702 uid = Y.stamp(anim._node),
19715 if ((attribute = attrs[name]) && attribute.transition === anim) {
19722 if (name in anim._node.style || name in Y.DOM.CUSTOM_STYLES) {
19724 customAttr[name].get(anim, name) : Transition.DEFAULT_GETTER(anim, name);
19753 anim._count--;
19800 get: function(anim, attr) {
19801 return Y.DOM._getAttrOffset(anim._node, attr);
19812 DEFAULT_SETTER: function(anim, att, from, to, elapsed, duration, fn, unit) {
19816 var node = anim._node,
19827 anim._end();
19837 DEFAULT_GETTER: function(anim, att) {
19838 var node = anim._node,
19867 anim;
19868 for (anim in Transition._running) {
19869 if (Transition._running[anim]._runFrame) {
19871 Transition._running[anim]._runFrame();