{"version":3,"file":"Customcursor.DYibw_yl.mjs","names":["useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/NQLafonmmONHalll95G6/wgoBq7gQCDCJn1NHouv3/Customcursor.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export default function CustomCursor(){const dotRef=useRef(null);const ringRef=useRef(null);const mouse=useRef({x:-100,y:-100});const ring=useRef({x:-100,y:-100});const raf=useRef(null);useEffect(()=>{const onMove=e=>{mouse.current={x:e.clientX,y:e.clientY};};window.addEventListener(\"mousemove\",onMove);const animate=()=>{ring.current.x+=(mouse.current.x-ring.current.x)*.12;ring.current.y+=(mouse.current.y-ring.current.y)*.12;if(dotRef.current){dotRef.current.style.transform=`translate(${mouse.current.x-5}px, ${mouse.current.y-5}px)`;}if(ringRef.current){ringRef.current.style.transform=`translate(${ring.current.x-19}px, ${ring.current.y-19}px)`;}raf.current=requestAnimationFrame(animate);};raf.current=requestAnimationFrame(animate);return()=>{window.removeEventListener(\"mousemove\",onMove);if(raf.current)cancelAnimationFrame(raf.current);};},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`* { cursor: none !important; }`}),/*#__PURE__*/_jsx(\"div\",{ref:dotRef,style:{position:\"fixed\",top:0,left:0,width:10,height:10,borderRadius:\"50%\",backgroundColor:\"#BF3E18\",pointerEvents:\"none\",zIndex:99999,willChange:\"transform\",transform:\"translate(-100px, -100px)\"}}),/*#__PURE__*/_jsx(\"div\",{ref:ringRef,style:{position:\"fixed\",top:0,left:0,width:38,height:38,borderRadius:\"50%\",border:\"2px solid #BF3E18\",backgroundColor:\"transparent\",pointerEvents:\"none\",zIndex:99998,willChange:\"transform\",transform:\"translate(-100px, -100px)\"}})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomCursor\",\"slots\":[],\"annotations\":{\"framerContractVersion\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