UNPKG

419 BJavaScriptView Raw
1export function getMotion(_ref) {
2 var prefixCls = _ref.prefixCls,
3 motion = _ref.motion,
4 animation = _ref.animation,
5 transitionName = _ref.transitionName;
6
7 if (motion) {
8 return motion;
9 }
10
11 if (animation) {
12 return {
13 motionName: "".concat(prefixCls, "-").concat(animation)
14 };
15 }
16
17 if (transitionName) {
18 return {
19 motionName: transitionName
20 };
21 }
22
23 return null;
24}
\No newline at end of file