11 lines
266 B
TypeScript
11 lines
266 B
TypeScript
|
import {animate, state, style, transition, trigger} from "@angular/animations";
|
||
|
|
||
|
export const animation = trigger('state', [
|
||
|
state('*', style({
|
||
|
transform: 'translate(-50%, {{y}}%)'
|
||
|
}), {params: {y: -50}}),
|
||
|
transition('* => *', [
|
||
|
animate('1s')
|
||
|
])
|
||
|
]);
|