a zip code crypto-currency system good for red ONLY

alert-transitions.js 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. import { Animation } from '../../animations/animation';
  2. import { Transition } from '../../transitions/transition';
  3. /**
  4. * Animations for alerts
  5. */
  6. export class AlertPopIn extends Transition {
  7. init() {
  8. const ele = this.enteringView.pageRef().nativeElement;
  9. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  10. const wrapper = new Animation(this.plt, ele.querySelector('.alert-wrapper'));
  11. wrapper.fromTo('opacity', 0.01, 1).fromTo('scale', 1.1, 1);
  12. backdrop.fromTo('opacity', 0.01, 0.3);
  13. this
  14. .easing('ease-in-out')
  15. .duration(200)
  16. .add(backdrop)
  17. .add(wrapper);
  18. }
  19. }
  20. export class AlertPopOut extends Transition {
  21. init() {
  22. const ele = this.leavingView.pageRef().nativeElement;
  23. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  24. const wrapper = new Animation(this.plt, ele.querySelector('.alert-wrapper'));
  25. wrapper.fromTo('opacity', 0.99, 0).fromTo('scale', 1, 0.9);
  26. backdrop.fromTo('opacity', 0.3, 0);
  27. this
  28. .easing('ease-in-out')
  29. .duration(200)
  30. .add(backdrop)
  31. .add(wrapper);
  32. }
  33. }
  34. export class AlertMdPopIn extends Transition {
  35. init() {
  36. const ele = this.enteringView.pageRef().nativeElement;
  37. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  38. const wrapper = new Animation(this.plt, ele.querySelector('.alert-wrapper'));
  39. wrapper.fromTo('opacity', 0.01, 1).fromTo('scale', 1.1, 1);
  40. backdrop.fromTo('opacity', 0.01, 0.5);
  41. this
  42. .easing('ease-in-out')
  43. .duration(200)
  44. .add(backdrop)
  45. .add(wrapper);
  46. }
  47. }
  48. export class AlertMdPopOut extends Transition {
  49. init() {
  50. const ele = this.leavingView.pageRef().nativeElement;
  51. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  52. const wrapper = new Animation(this.plt, ele.querySelector('.alert-wrapper'));
  53. wrapper.fromTo('opacity', 0.99, 0).fromTo('scale', 1, 0.9);
  54. backdrop.fromTo('opacity', 0.5, 0);
  55. this
  56. .easing('ease-in-out')
  57. .duration(200)
  58. .add(backdrop)
  59. .add(wrapper);
  60. }
  61. }
  62. export class AlertWpPopIn extends Transition {
  63. init() {
  64. const ele = this.enteringView.pageRef().nativeElement;
  65. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  66. const wrapper = new Animation(this.plt, ele.querySelector('.alert-wrapper'));
  67. wrapper.fromTo('opacity', 0.01, 1).fromTo('scale', 1.3, 1);
  68. backdrop.fromTo('opacity', 0.01, 0.5);
  69. this
  70. .easing('cubic-bezier(0,0,0.05,1)')
  71. .duration(200)
  72. .add(backdrop)
  73. .add(wrapper);
  74. }
  75. }
  76. export class AlertWpPopOut extends Transition {
  77. init() {
  78. const ele = this.leavingView.pageRef().nativeElement;
  79. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  80. const wrapper = new Animation(this.plt, ele.querySelector('.alert-wrapper'));
  81. wrapper.fromTo('opacity', 0.99, 0).fromTo('scale', 1, 1.3);
  82. backdrop.fromTo('opacity', 0.5, 0);
  83. this
  84. .easing('ease-out')
  85. .duration(150)
  86. .add(backdrop)
  87. .add(wrapper);
  88. }
  89. }
  90. //# sourceMappingURL=alert-transitions.js.map