From cca389abee78aa8468810abc10f3eef3e22053f7 Mon Sep 17 00:00:00 2001 From: Drew Rygh Date: Mon, 19 Oct 2015 11:48:45 -0500 Subject: [PATCH] docs(demos): use default animation --- demos/component-docs/modals/modals.ts | 30 +-------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/demos/component-docs/modals/modals.ts b/demos/component-docs/modals/modals.ts index 26ba5f1da8..f4c3936b3a 100644 --- a/demos/component-docs/modals/modals.ts +++ b/demos/component-docs/modals/modals.ts @@ -17,11 +17,7 @@ class ModalsFirstPage { } openModal() { - this.modal.open(ModalsContentPage, { - handle: 'my-awesome-modal', - enterAnimation: 'my-fade-in', - leaveAnimation: 'my-fade-out' - }); + this.modal.open(ModalsContentPage); } } @@ -54,27 +50,3 @@ export class ModalsPage { this.rootView = ModalsFirstPage; } } - -class FadeIn extends Animation { - constructor(element) { - super(element); - this - .easing('ease') - .duration(450) - .fadeIn(); - } -} - -Animation.register('my-fade-in', FadeIn); - -class FadeOut extends Animation { - constructor(element) { - super(element); - this - .easing('ease') - .duration(250) - .fadeOut(); - } -} - -Animation.register('my-fade-out', FadeOut);