{"version":3,"file":"Dimension_Tilt.BKL9TwLT.mjs","names":["r","n","i","e"],"sources":["https:/framerusercontent.com/modules/pBSUV3fknoJh6s0pp4zR/ok2ucJk0OYoVlCr2jSni/Dimension_Tilt.js"],"sourcesContent":["import{jsx as t}from\"react/jsx-runtime\";import{motion as e,useMotionValue as r,useTransform as n,useSpring as i}from\"framer-motion\";export function with3DTilt(s){return o=>{// Create motion values for the mouse position (x and y)\nlet a=r(.5),f=r(.5),m=n(f,[0,1],[15,-15]),l=n(a,[0,1],[-15,15]),u=i(m,{stiffness:300,damping:100}),c=i(l,{stiffness:300,damping:100});return /*#__PURE__*/t(s,{...o,as:e.div,style:{...o.style,rotateX:u,rotateY:c,transformOrigin:\"center\"},onMouseMove:t=>{let e=t.currentTarget.getBoundingClientRect(),r=t.clientX-e.left,n=t.clientY-e.top;a.set(r/e.width),f.set(n/e.height);},onMouseLeave:()=>{a.set(.5),f.set(.5);}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"with3DTilt\":{\"type\":\"reactHoc\",\"name\":\"with3DTilt\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Dimension_Tilt.map"],"mappings":"+PAAoI,SAAgB,EAAW,EAAE,CAAC,MAAO,IAAG,CAC5K,IAAI,EAAEA,EAAE,IAAI,EAAEA,EAAE,IAAI,EAAEC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,EAAEA,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,GAAG,EAAE,EAAEC,EAAE,EAAE,CAAC,UAAU,IAAI,QAAQ,IAAI,EAAE,EAAEA,EAAE,EAAE,CAAC,UAAU,IAAI,QAAQ,IAAI,EAAE,OAAoB,EAAE,EAAE,CAAC,GAAG,EAAE,GAAGC,EAAE,IAAI,MAAM,CAAC,GAAG,EAAE,MAAM,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,SAAS,CAAC,YAAY,GAAG,CAAC,IAAI,EAAE,EAAE,cAAc,wBAAwB,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,OAAS,EAAC,iBAAiB,CAAC,EAAE,IAAI,IAAI,EAAE,IAAI,GAAK,EAAC,CAAG,CAAE"}