mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
14 lines
432 B
TypeScript
14 lines
432 B
TypeScript
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
|
|
export const shrinkInOut = trigger('shrinkInOut', [
|
|
state('in', style({height: '100%', opacity: 1})),
|
|
transition('* => void', [
|
|
style({height: '!', opacity: 1}),
|
|
animate(200, style({height: 0, opacity: 0}))
|
|
]),
|
|
transition('void => *', [
|
|
style({height: 0, opacity: 0}),
|
|
animate(200, style({height: '*', opacity: 1}))
|
|
])
|
|
]);
|