UNPKG

ng-zorro-antd-yj

Version:

An enterprise-class UI components based on Ant Design and Angular

65 lines 6.89 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { animate, state, style, transition, trigger } from '@angular/animations'; import { AnimationCurves, AnimationDuration } from './animation'; /** @type {?} */ const ANIMATION_TRANSITION_IN = `${AnimationDuration.BASE} ${AnimationCurves.EASE_OUT_QUINT}`; /** @type {?} */ const ANIMATION_TRANSITION_OUT = `${AnimationDuration.BASE} ${AnimationCurves.EASE_IN_QUINT}`; /** @type {?} */ export const slideMotion = trigger('slideMotion', [ state('bottom', style({ opacity: 1, transform: 'scaleY(1)', transformOrigin: '0% 0%' })), state('top', style({ opacity: 1, transform: 'scaleY(1)', transformOrigin: '0% 100%' })), transition('void => bottom', [ style({ opacity: 0, transform: 'scaleY(0.8)', transformOrigin: '0% 0%' }), animate(ANIMATION_TRANSITION_IN) ]), transition('bottom => void', [ animate(ANIMATION_TRANSITION_OUT, style({ opacity: 0, transform: 'scaleY(0.8)', transformOrigin: '0% 0%' })) ]), transition('void => top', [ style({ opacity: 0, transform: 'scaleY(0.8)', transformOrigin: '0% 100%' }), animate(ANIMATION_TRANSITION_IN) ]), transition('top => void', [ animate(ANIMATION_TRANSITION_OUT, style({ opacity: 0, transform: 'scaleY(0.8)', transformOrigin: '0% 100%' })) ]) ]); /** @type {?} */ export const slideAlertMotion = trigger('slideAlertMotion', [ transition(':leave', [ style({ opacity: 1, transform: 'scaleY(1)', transformOrigin: '0% 0%' }), animate(`${AnimationDuration.SLOW} ${AnimationCurves.EASE_IN_OUT_CIRC}`, style({ opacity: 0, transform: 'scaleY(0)', transformOrigin: '0% 0%' })) ]) ]); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZy16b3Jyby1hbnRkLXlqLyIsInNvdXJjZXMiOls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