(()=>{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,l=r.height/2,i=(n-l)/l*d*-1,s=(a-c)/c*d;t.style.transform=`perspective(1000px) rotateX(${i}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(".cryzel-3d-tilt-card").forEach(r=>{r.addEventListener("mousemove",e),r.addEventListener("mouseleave",t)})})})();