dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app/utils/full-page-slider/animation.ts @ 61381
1 |
import {animate, state, style, transition, trigger} from "@angular/animations"; |
---|---|
2 |
|
3 |
export const animation = trigger('state', [ |
4 |
state('*', style({ |
5 |
transform: 'translate(-50%, {{y}}%)' |
6 |
}), {params: {y: -50}}), |
7 |
transition('* => *', [ |
8 |
animate('{{time}}s') |
9 |
], {params: {time: 0.5}}) |
10 |
]);
|