a zip code crypto-currency system good for red ONLY

transition.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { Animation } from '../animations/animation';
  2. /**
  3. * @hidden
  4. *
  5. * - play
  6. * - Add before classes - DOM WRITE
  7. * - Remove before classes - DOM WRITE
  8. * - Add before inline styles - DOM WRITE
  9. * - set inline FROM styles - DOM WRITE
  10. * - RAF
  11. * - read toolbar dimensions - DOM READ
  12. * - write content top/bottom padding - DOM WRITE
  13. * - set css transition duration/easing - DOM WRITE
  14. * - RAF
  15. * - set inline TO styles - DOM WRITE
  16. */
  17. export class Transition extends Animation {
  18. constructor(plt, enteringView, leavingView, opts) {
  19. super(plt, null, opts);
  20. this.enteringView = enteringView;
  21. this.leavingView = leavingView;
  22. }
  23. init() { }
  24. registerStart(trnsStart) {
  25. this._trnsStart = trnsStart;
  26. }
  27. start() {
  28. this._trnsStart && this._trnsStart();
  29. this._trnsStart = null;
  30. // bubble up start
  31. this.parent && this.parent.start();
  32. }
  33. destroy() {
  34. super.destroy();
  35. this.parent = this.enteringView = this.leavingView = this._trnsStart = null;
  36. }
  37. }
  38. //# sourceMappingURL=transition.js.map