{"version":3,"file":"Cursor.CwEFP21C.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/r2enhNeqwkd4XBito07P/sEVBq9OpIrzhyiPU08dh/Cursor.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{motion,useMotionValue,useSpring}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export function CursorFollow(props){const{color,size,blurStrength,trailCount}=props;const x=useMotionValue(0);const y=useMotionValue(0);const springs=Array.from({length:trailCount}).map((_,i)=>({x:useSpring(x,{stiffness:300-i*30,damping:40}),y:useSpring(y,{stiffness:300-i*30,damping:40}),opacity:1-i/trailCount,scale:1-i*.05}));React.useEffect(()=>{const move=e=>{x.set(e.clientX-size/2);y.set(e.clientY-size/2);};window.addEventListener(\"mousemove\",move);return()=>window.removeEventListener(\"mousemove\",move);},[size]);return /*#__PURE__*/_jsx(_Fragment,{children:springs.map((s,i)=>/*#__PURE__*/_jsx(motion.div,{style:{position:\"fixed\",left:0,top:0,x:s.x,y:s.y,width:size,height:size,borderRadius:\"50%\",backgroundColor:color,opacity:s.opacity,scale:s.scale,pointerEvents:\"none\",filter:`blur(${blurStrength}px)`,zIndex:9999}},i))});}CursorFollow.defaultProps={color:\"#ff4d4d\",size:10,blurStrength:6,trailCount:6};addPropertyControls(CursorFollow,{color:{type:ControlType.Color,title:\"Color\"},size:{type:ControlType.Number,title:\"Size\",min:4,max:40,step:1},blurStrength:{type:ControlType.Number,title:\"Blur\",min:0,max:20,step:1},trailCount:{type:ControlType.Number,title:\"Trail\",min:1,max:12,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"CursorFollow\":{\"type\":\"reactComponent\",\"name\":\"CursorFollow\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Cursor.map"],"mappings":"oPAA4M,SAAgB,EAAa,EAAM,CAAC,GAAK,CAAC,QAA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