UNPKG

ionic-angular

Version:

A powerful framework for building mobile and progressive web apps with JavaScript and Angular

36 lines 1.03 kB
import { Animation } from '../animations/animation'; import { Transition } from './transition'; /** * @hidden */ export class PageTransition extends Transition { /** * @return {?} */ init() { if (this.enteringView) { this.enteringPage = new Animation(this.plt, this.enteringView.pageRef()); this.add(this.enteringPage.beforeAddClass('show-page')); // Resize content before transition starts this.beforeAddRead(() => { this.enteringView.readReady.emit(); }); this.beforeAddWrite(() => { this.enteringView.writeReady.emit(); }); } } /** * @return {?} */ destroy() { super.destroy(); this.enteringPage && this.enteringPage.destroy(); this.enteringPage = null; } } function PageTransition_tsickle_Closure_declarations() { /** @type {?} */ PageTransition.prototype.enteringPage; } //# sourceMappingURL=page-transition.js.map