import { Animation } from '../animations/animation';
import { Transition } from './transition';
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 = null;
    }
}
function PageTransition_tsickle_Closure_declarations() {
    /** @type {?} */
    PageTransition.prototype.enteringPage;
}
//# sourceMappingURL=page-transition.js.map