a zip code crypto-currency system good for red ONLY

action-sheet-transitions.js 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { Animation } from '../../animations/animation';
  2. import { Transition } from '../../transitions/transition';
  3. export class ActionSheetSlideIn extends Transition {
  4. init() {
  5. const ele = this.enteringView.pageRef().nativeElement;
  6. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  7. const wrapper = new Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  8. backdrop.fromTo('opacity', 0.01, 0.4);
  9. wrapper.fromTo('translateY', '100%', '0%');
  10. this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper);
  11. }
  12. }
  13. export class ActionSheetSlideOut extends Transition {
  14. init() {
  15. const ele = this.leavingView.pageRef().nativeElement;
  16. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  17. const wrapper = new Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  18. backdrop.fromTo('opacity', 0.4, 0);
  19. wrapper.fromTo('translateY', '0%', '100%');
  20. this.easing('cubic-bezier(.36,.66,.04,1)').duration(300).add(backdrop).add(wrapper);
  21. }
  22. }
  23. export class ActionSheetMdSlideIn extends Transition {
  24. init() {
  25. const ele = this.enteringView.pageRef().nativeElement;
  26. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  27. const wrapper = new Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  28. backdrop.fromTo('opacity', 0.01, 0.26);
  29. wrapper.fromTo('translateY', '100%', '0%');
  30. this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper);
  31. }
  32. }
  33. export class ActionSheetMdSlideOut extends Transition {
  34. init() {
  35. const ele = this.leavingView.pageRef().nativeElement;
  36. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  37. const wrapper = new Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  38. backdrop.fromTo('opacity', 0.26, 0);
  39. wrapper.fromTo('translateY', '0%', '100%');
  40. this.easing('cubic-bezier(.36,.66,.04,1)').duration(450).add(backdrop).add(wrapper);
  41. }
  42. }
  43. export class ActionSheetWpSlideIn extends Transition {
  44. init() {
  45. const ele = this.enteringView.pageRef().nativeElement;
  46. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  47. const wrapper = new Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  48. backdrop.fromTo('opacity', 0.01, 0.16);
  49. wrapper.fromTo('translateY', '100%', '0%');
  50. this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper);
  51. }
  52. }
  53. export class ActionSheetWpSlideOut extends Transition {
  54. init() {
  55. const ele = this.leavingView.pageRef().nativeElement;
  56. const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
  57. const wrapper = new Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  58. backdrop.fromTo('opacity', 0.1, 0);
  59. wrapper.fromTo('translateY', '0%', '100%');
  60. this.easing('cubic-bezier(.36,.66,.04,1)').duration(450).add(backdrop).add(wrapper);
  61. }
  62. }
  63. //# sourceMappingURL=action-sheet-transitions.js.map