@rdkmaster/jigsaw-labs
Version:
Jigsaw, the next generation component set for RDK
18 lines (16 loc) • 542 B
text/typescript
import { trigger, state, style, transition, animate, keyframes, AnimationTriggerMetadata } from '@angular/animations';
export const fadeIn: AnimationTriggerMetadata = trigger('fadeIn', [
state('in', style({opacity: 1})),
transition('void => *', [
animate(400, keyframes([
style({opacity: 0, offset: 0}),
style({opacity: 1, offset: 1.0})
]))
]),
transition('* => void', [
animate(400, keyframes([
style({opacity: 1, offset: 0}),
style({opacity: 0, offset: 1.0})
]))
])
]);