function e(e,t,n){let r;switch(t=typeof t==`number`?`${t}px`:t,n=typeof n==`number`?`${n}px`:n,e){case`top`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:t,bottom:`auto`};break;case`topLeft`:r={left:0,top:t,bottom:`auto`};break;case`topRight`:r={right:0,top:t,bottom:`auto`};break;case`bottom`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:`auto`,bottom:n};break;case`bottomLeft`:r={left:0,top:`auto`,bottom:n};break;default:r={right:0,top:`auto`,bottom:n};break}return r}function t(e){return{name:`${e}-fade`}}export{t as getMotion,e as getPlacementStyle};