a zip code crypto-currency system good for red ONLY

page-transition.js 836B

1234567891011121314151617181920212223242526
  1. import { Animation } from '../animations/animation';
  2. import { Transition } from './transition';
  3. /**
  4. * @hidden
  5. */
  6. export class PageTransition extends Transition {
  7. init() {
  8. if (this.enteringView) {
  9. this.enteringPage = new Animation(this.plt, this.enteringView.pageRef());
  10. this.add(this.enteringPage.beforeAddClass('show-page'));
  11. // Resize content before transition starts
  12. this.beforeAddRead(() => {
  13. this.enteringView.readReady.emit();
  14. });
  15. this.beforeAddWrite(() => {
  16. this.enteringView.writeReady.emit();
  17. });
  18. }
  19. }
  20. destroy() {
  21. super.destroy();
  22. this.enteringPage && this.enteringPage.destroy();
  23. this.enteringPage = null;
  24. }
  25. }
  26. //# sourceMappingURL=page-transition.js.map