ll-package
Version:
5 lines (4 loc) • 2.81 kB
JavaScript
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_util/cssinjs/Keyframes.js"),I=require("./motion.js"),s=new o.default("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),e=new o.default("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),r=new o.default("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),m=new o.default("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),i=new o.default("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),f=new o.default("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),c=new o.default("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),u=new o.default("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),l=new o.default("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),O=new o.default("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),g=new o.default("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),y=new o.default("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),K={zoom:{inKeyframes:s,outKeyframes:e},"zoom-big":{inKeyframes:r,outKeyframes:m},"zoom-big-fast":{inKeyframes:r,outKeyframes:m},"zoom-left":{inKeyframes:c,outKeyframes:u},"zoom-right":{inKeyframes:l,outKeyframes:O},"zoom-up":{inKeyframes:i,outKeyframes:f},"zoom-down":{inKeyframes:g,outKeyframes:y}},d=(t,a)=>{const{antCls:z}=t,n=`${z}-${a}`,{inKeyframes:p,outKeyframes:w}=K[a];return[I.initMotion(n,p,w,a==="zoom-big-fast"?t.motionDurationFast:t.motionDurationMid),{[`
${n}-enter,
${n}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]};exports.initZoomMotion=d;exports.zoomBigIn=r;exports.zoomBigOut=m;exports.zoomDownIn=g;exports.zoomDownOut=y;exports.zoomIn=s;exports.zoomLeftIn=c;exports.zoomLeftOut=u;exports.zoomOut=e;exports.zoomRightIn=l;exports.zoomRightOut=O;exports.zoomUpIn=i;exports.zoomUpOut=f;
;