Lines Matching defs:transition

2 * Provides the transition method for Node.
3 * Transition has no API of its own, but adds the transition method to Node.
5 * @module transition
13 TRANSITION = 'transition',
36 * A class for constructing transition instances.
37 * Adds the "transition" method to Node.
87 TRANSITION_PROPERTY = VENDOR_PREFIX + 'transition-property';
88 TRANSITION_DURATION = VENDOR_PREFIX + 'transition-duration';
89 TRANSITION_TIMING_FUNCTION = VENDOR_PREFIX + 'transition-timing-function';
90 TRANSITION_DELAY = VENDOR_PREFIX + 'transition-delay';
107 Transition.NAME = 'transition';
169 if (attr && attr.transition) {
170 // take control if another transition owns this property
171 if (attr.transition !== anim) {
172 attr.transition._count--; // remapping attr to this transition
176 anim._count++; // properties per transition
190 transition: anim
254 type: 'transition:start',
317 if ((attr = attrs[name]) && attr.transition === anim) {
353 type: 'transition:end',
403 anim = (attr) ? attr.transition : null,
445 * Animate one or more css properties to a given value. Requires the "transition" module.
447 * Y.one('#demo').transition({
464 * @method transition
466 * @param {Function} callback A function to run after the transition has completed.
469 Y.Node.prototype.transition = function(name, config, callback) {
472 anim = (transitionAttrs) ? transitionAttrs.transition || null : null,
514 this._show(); // show prior to transition
523 this.transition(name, config, callback);
525 else if (name && !Y.Transition) { Y.log('unable to transition show; missing transition module', 'warn', 'node'); }
555 this.transition(name, config, callback);
556 } else if (name && !Y.Transition) { Y.log('unable to transition hide; missing transition module', 'warn', 'node');
564 * Animate one or more css properties to a given value. Requires the "transition" module.
566 * Y.all('.demo').transition({
583 * @method transition
585 * @param {Function} callback A function to run after the transition has completed. The callback fires
589 Y.NodeList.prototype.transition = function(config, callback) {
595 Y.one(node).transition(config, callback);
605 if (typeof name == 'boolean') { // no transition, just toggle
624 this.transition(Y.Transition.toggles[name][on], callback);