searchbox

This commit is contained in:
2019-11-28 20:01:30 +01:00
committed by smuddy
parent 47f15f15ad
commit 6de7de7224
16 changed files with 141 additions and 16 deletions

20
src/app/animations.ts Normal file
View File

@@ -0,0 +1,20 @@
import {animate, query, stagger, state, style, transition, trigger} from '@angular/animations';
export const fade = [
// the fade-in/fade-out animation.
trigger('fade', [
// the "in" style determines the "resting" state of the element when it is visible.
state('in', style({opacity: 1, display: 'block', transform: 'translateY(0px)'})),
// fade in when created. this could also be written as transition('void => *')
transition(':enter', [
style({opacity: 0, display: 'block', transform: 'translateY(-20px)'}),
animate(300)
]),
// fade out when destroyed. this could also be written as transition('void => *')
transition(':leave',
animate(300, style({opacity: 0, display: 'block', transform: 'translateY(-20px)'})))
])
];