UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

30 lines (29 loc) 827 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; const genCollapseMotion = token => { const { componentCls, antCls, motionDurationMid, motionEaseInOut } = token; return { [componentCls]: { // For common/openAnimation [`${antCls}-motion-collapse-legacy`]: { overflow: 'hidden', '&-active': { transition: `${['height', 'opacity'].map(prop => `${prop} ${motionDurationMid} ${motionEaseInOut}`).join(', ')} !important` } }, [`${antCls}-motion-collapse`]: { overflow: 'hidden', transition: `${['height', 'opacity'].map(prop => `${prop} ${motionDurationMid} ${motionEaseInOut}`).join(', ')} !important` } } }; }; var _default = exports.default = genCollapseMotion;