2020-06-15 21:02:44 +02:00
|
|
|
import {animate, state, style, transition, trigger} from "@angular/animations";
|
|
|
|
|
|
|
|
export const animation = trigger('state', [
|
|
|
|
state('*', style({
|
|
|
|
transform: 'translate(-50%, {{y}}%)'
|
|
|
|
}), {params: {y: -50}}),
|
|
|
|
transition('* => *', [
|
2020-06-16 21:59:51 +02:00
|
|
|
animate('{{time}}s')
|
|
|
|
], {params: {time: 0.5}})
|
2020-06-15 21:02:44 +02:00
|
|
|
]);
|