{"version":3,"file":"Background.B1oXe27s.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/kPZkIVbxj4tBNDWAkMvb/cMo6TdKuvQK3OFP5QAna/Background.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useState}from\"react\";export default function Background(props){const[mouseX,setMouseX]=useState(\"50%\");const[mouseY,setMouseY]=useState(\"0%\");const handleMouseMove=event=>{const x=Math.round(event.clientX/window.innerWidth*100)+\"%\";const y=Math.round(event.clientY/window.innerHeight*100)+\"%\";setMouseX(x);setMouseY(y);};useEffect(()=>{window.addEventListener(\"mousemove\",handleMouseMove);return()=>{window.removeEventListener(\"mousemove\",handleMouseMove);};},[]);const containerStyle={\"--mouse-x\":mouseX,\"--mouse-y\":mouseY,width:\"100%\",height:\"100%\",backgroundImage:`url(${props.patternOne})`,backgroundSize:\"101px 144px\",backgroundPosition:\"0 0\",animation:\"coding 0.8s linear infinite alternate\",mask:`radial-gradient(circle at ${mouseX} ${mouseY}, rgba(0,0,0,1) 100px, rgba(0, 0, 0, 0) 200px)`,WebkitMask:`radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0,0,0,1) 100px, rgba(0, 0, 0, 0) 200px)`,opacity:\"0.3\"};const keyframesStyle=`\n    @keyframes coding {\n      0% {\n        background-image: url(${props.patternTwo});\n      }\n    \n      33% {\n        background-image: url(${props.patternTwo});\n      }\n    \n      66% {\n        background-image: url(${props.patternOne});\n      }\n    }\n  `;return /*#__PURE__*/ _jsxs(\"div\",{style:{width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/ _jsx(\"style\",{children:keyframesStyle}),/*#__PURE__*/ _jsx(\"div\",{style:containerStyle})]});};addPropertyControls(Background,{patternOne:{type:ControlType.Image},patternTwo:{type:ControlType.Image}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Background\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Background.map"],"mappings":"sMAAmJ,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,EAAO,GAAWA,EAAS,MAAM,CAAM,CAAC,EAAO,GAAWA,EAAS,KAAK,CAAO,EAAgB,GAAO,CAAC,IAAM,EAAE,KAAK,MAAM,EAAM,QAAQ,EAAO,WAAW,IAAI,CAAC,IAAU,EAAE,KAAK,MAAM,EAAM,QAAQ,EAAO,YAAY,IAAI,CAAC,IAAI,EAAU,EAAE,CAAC,EAAU,EAAE,EAAG,OAAe,EAAO,iBAAiB,YAAY,EAAgB,KAAW,CAAC,EAAO,oBAAoB,YAAY,EAAgB,GAAK,EAAE,CAAC,CAAC,IAAM,EAAe,CAAC,YAAY,EAAO,YAAY,EAAO,MAAM,OAAO,OAAO,OAAO,gBAAgB,OAAO,EAAM,WAAW,GAAG,eAAe,cAAc,mBAAmB,MAAM,UAAU,wCAAwC,KAAK,6BAA6B,EAAO,GAAG,EAAO,gDAAgD,WAAW,wGAAwG,QAAQ,MAAM,CAcxhC,OAAqB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,CAAC,SAAS,CAAe,EAAK,QAAQ,CAAC,SAdm8B;;;gCAGlhC,EAAM,WAAW;;;;gCAIjB,EAAM,WAAW;;;;gCAIjB,EAAM,WAAW;;;IAGsF,CAAC,CAAe,EAAK,MAAM,CAAC,MAAM,EAAe,CAAC,CAAC,CAAC,CAAC,sBAdnI,IAAoD,IAAsC,CAc4C,EAAoB,EAAW,CAAC,WAAW,CAAC,KAAK,EAAY,MAAM,CAAC,WAAW,CAAC,KAAK,EAAY,MAAM,CAAC,CAAC"}