UNPKG

946 BTypeScriptView Raw
1import { AnimationTriggerMetadata } from '@angular/animations';
2export interface IAnimationOptions {
3 anchor?: string;
4 duration?: number;
5 delay?: number;
6}
7export interface ICollapseAnimation extends IAnimationOptions {
8 easeOnClose?: string;
9 easeOnOpen?: string;
10}
11/**
12 * const tdCollapseAnimation
13 *
14 * Parameter Options:
15 * * duration: Duration the animation will run in milliseconds. Defaults to 150 ms.
16 * * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
17 * * easeOnClose: Animation accelerates and decelerates when closing. Defaults to ease-in.
18 * * easeOnOpen: Animation accelerates and decelerates when opening. Defaults to ease-out.
19 *
20 * Returns an [AnimationTriggerMetadata] object with boolean states for a collapse/expand animation.
21 *
22 * usage: [@tdCollapse]="{ value: true | false, params: { duration: 500 }}"
23 */
24export declare const tdCollapseAnimation: AnimationTriggerMetadata;