UNPKG

@aplus-frontend/antdv

Version:

Vue basic component library maintained based on ant-design-vue

48 lines (47 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _cssinjs = require("../../_util/cssinjs"); const uploadAnimateInlineIn = new _cssinjs.Keyframes('uploadAnimateInlineIn', { from: { width: 0, height: 0, margin: 0, padding: 0, opacity: 0 } }); const uploadAnimateInlineOut = new _cssinjs.Keyframes('uploadAnimateInlineOut', { to: { width: 0, height: 0, margin: 0, padding: 0, opacity: 0 } }); // =========================== Motion =========================== const genMotionStyle = token => { const { componentCls } = token; const inlineCls = `${componentCls}-animate-inline`; return [{ [`${componentCls}-wrapper`]: { [`${inlineCls}-appear, ${inlineCls}-enter, ${inlineCls}-leave`]: { animationDuration: token.motionDurationSlow, animationTimingFunction: token.motionEaseInOutCirc, animationFillMode: 'forwards' }, [`${inlineCls}-appear, ${inlineCls}-enter`]: { animationName: uploadAnimateInlineIn }, [`${inlineCls}-leave`]: { animationName: uploadAnimateInlineOut } } }, uploadAnimateInlineIn, uploadAnimateInlineOut]; }; var _default = exports.default = genMotionStyle;