| 1234567891011121314151617181920212223242526272829303132333435363738 |
- import { Animation } from '../animations/animation';
- /**
- * @hidden
- *
- * - play
- * - Add before classes - DOM WRITE
- * - Remove before classes - DOM WRITE
- * - Add before inline styles - DOM WRITE
- * - set inline FROM styles - DOM WRITE
- * - RAF
- * - read toolbar dimensions - DOM READ
- * - write content top/bottom padding - DOM WRITE
- * - set css transition duration/easing - DOM WRITE
- * - RAF
- * - set inline TO styles - DOM WRITE
- */
- export class Transition extends Animation {
- constructor(plt, enteringView, leavingView, opts) {
- super(plt, null, opts);
- this.enteringView = enteringView;
- this.leavingView = leavingView;
- }
- init() { }
- registerStart(trnsStart) {
- this._trnsStart = trnsStart;
- }
- start() {
- this._trnsStart && this._trnsStart();
- this._trnsStart = null;
- // bubble up start
- this.parent && this.parent.start();
- }
- destroy() {
- super.destroy();
- this.parent = this.enteringView = this.leavingView = this._trnsStart = null;
- }
- }
- //# sourceMappingURL=transition.js.map
|