UNPKG

524 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.getMotion = getMotion;
7
8function getMotion(_ref) {
9 var prefixCls = _ref.prefixCls,
10 motion = _ref.motion,
11 animation = _ref.animation,
12 transitionName = _ref.transitionName;
13
14 if (motion) {
15 return motion;
16 }
17
18 if (animation) {
19 return {
20 motionName: "".concat(prefixCls, "-").concat(animation)
21 };
22 }
23
24 if (transitionName) {
25 return {
26 motionName: transitionName
27 };
28 }
29
30 return null;
31}
\No newline at end of file