function m(p){const o=p-1;return o*o*o+1}function b(p,{delay:o=0,duration:d=400,easing:s=m,axis:n="y"}={}){const r=getComputedStyle(p),c=+r.opacity,i=n==="y"?"height":"width",$=parseFloat(r[i]),a=n==="y"?["top","bottom"]:["left","right"],e=a.map(t=>`${t[0].toUpperCase()}${t.slice(1)}`),l=parseFloat(r[`padding${e[0]}`]),_=parseFloat(r[`padding${e[1]}`]),g=parseFloat(r[`margin${e[0]}`]),u=parseFloat(r[`margin${e[1]}`]),y=parseFloat(r[`border${e[0]}Width`]),h=parseFloat(r[`border${e[1]}Width`]);return{delay:o,duration:d,easing:s,css:t=>`overflow: hidden;opacity: ${Math.min(t*20,1)*c};${i}: ${t*$}px;padding-${a[0]}: ${t*l}px;padding-${a[1]}: ${t*_}px;margin-${a[0]}: ${t*g}px;margin-${a[1]}: ${t*u}px;border-${a[0]}-width: ${t*y}px;border-${a[1]}-width: ${t*h}px;`}}export{b as s};
