(()=>{function e(e){const t=e.currentTarget,r=t.getBoundingClientRect(),a=e.clientX-r.left,n=e.clientY-r.top,d=parseFloat(t.getAttribute("data-tilt-max"))||15,o=parseFloat(t.getAttribute("data-scale"))||1.03,c=r.width/2,i=r.height/2,l=(n-i)/i*d*-1,s=(a-c)/c*d;t.style.transform=`perspective(1000px) rotateX(${l}deg) rotateY(${s}deg) scale3d(${o}, ${o}, ${o})`}function t(e){e.currentTarget.style.transform="perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)"}document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".eryndo-3d-tilt-card").forEach((r=>{r.addEventListener("mousemove",e),r.addEventListener("mouseleave",t)}))}))})();