mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
refactor: decompose app component
This commit is contained in:
17
frontend/projects/ui/src/app/util/animations.ts
Normal file
17
frontend/projects/ui/src/app/util/animations.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { animate, style, transition, trigger } from '@angular/animations'
|
||||
|
||||
const TRANSITION = '{{duration}}ms {{delay}}ms ease-in-out'
|
||||
const DURATION = { params: { duration: 300, delay: 0 } }
|
||||
|
||||
export const heightCollapse = trigger('heightCollapse', [
|
||||
transition(
|
||||
':enter',
|
||||
[style({ height: 0 }), animate(TRANSITION, style({ height: '*' }))],
|
||||
DURATION,
|
||||
),
|
||||
transition(
|
||||
':leave',
|
||||
[style({ height: '*' }), animate(TRANSITION, style({ height: 0 }))],
|
||||
DURATION,
|
||||
),
|
||||
])
|
||||
Reference in New Issue
Block a user