mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
Merged dynamic form module
This commit is contained in:
13
src/app/shared/animations/shrink.ts
Normal file
13
src/app/shared/animations/shrink.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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}))
|
||||
])
|
||||
]);
|
Reference in New Issue
Block a user