+
diff --git a/src/app/components/example/example.component.ts b/src/app/components/example/example.component.ts
index efed83ba..6c20c844 100644
--- a/src/app/components/example/example.component.ts
+++ b/src/app/components/example/example.component.ts
@@ -1,9 +1,23 @@
import { Component, OnInit, Input } from '@angular/core';
+import { trigger, state, style, transition, animate } from '@angular/animations';
@Component({
selector: 'app-example',
templateUrl: './example.component.html',
- styleUrls: ['./example.component.scss']
+ styleUrls: ['./example.component.scss'],
+ animations: [trigger('listAnim', [
+ state('open', style({ height: '*', opacity: 1 })),
+ state('closed', style({ height: '0px', opacity: 0 })),
+ transition('closed => open', [
+ style({ height: '0px', opacity: 0 }),
+ animate('220ms ease', style({ height: '*', opacity: 1 }))
+ ]),
+ transition('open => closed', [
+ style({ height: '*', opacity: 1 }),
+ animate('180ms ease', style({ height: '0', opacity: 0 }),
+ )
+ ])
+ ])]
})
export class ExampleComponent implements OnInit {
diff --git a/src/app/pages/buttons/buttons.page.html b/src/app/pages/buttons/buttons.page.html
index 0afcf500..52c1431d 100644
--- a/src/app/pages/buttons/buttons.page.html
+++ b/src/app/pages/buttons/buttons.page.html
@@ -10,7 +10,7 @@
-
+