{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/lOwSw0Z3YXoo4oc6MVcQ/LmMlmxTGqRqeBzgvGtvI/Zoom.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function ImageWithHoverEffect({image,zoom,moveIntensity}){const[hovered,setHovered]=useState(false);const[position,setPosition]=useState({x:50,y:50});const handleMouseMove=e=>{if(!hovered)return;const{left,top,width,height}=e.currentTarget.getBoundingClientRect();const x=(e.clientX-left)/width*100;const y=(e.clientY-top)/height*100;setPosition({x,y});};return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"},onMouseEnter:()=>setHovered(true),onMouseLeave:()=>{setHovered(false);setPosition({x:50,y:50})// Volver al centro al salir\n;},onMouseMove:handleMouseMove,children:/*#__PURE__*/_jsx(\"img\",{src:image,alt:\"Hover Effect\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",transition:\"transform 0.3s ease-out\",transformOrigin:`${position.x}% ${position.y}%`,transform:hovered?`scale(${zoom})`:\"scale(1)\"}})});}// Controles en Framer\naddPropertyControls(ImageWithHoverEffect,{image:{type:ControlType.Image,title:\"Image\"},zoom:{type:ControlType.Number,title:\"Zoom\",min:1,max:2,step:.1,defaultValue:1.5},moveIntensity:{type:ControlType.Number,title:\"Move Intensity\",min:0,max:50,step:1,defaultValue:20}});\nexport const __FramerMetadata__ = {\"exports\":{\"ImageWithHoverEffect\":{\"type\":\"reactComponent\",\"name\":\"ImageWithHoverEffect\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Zoom.map"],
  "mappings": "8DAAkI,SAASA,EAAqB,CAAC,MAAAC,EAAM,KAAAC,EAAK,cAAAC,CAAa,EAAE,CAAC,GAAK,CAACC,EAAQC,CAAU,EAAEC,EAAS,EAAK,EAAO,CAACC,EAASC,CAAW,EAAEF,EAAS,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,EAA+M,OAAoBG,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,QAAQ,EAAE,aAAa,IAAIJ,EAAW,EAAI,EAAE,aAAa,IAAI,CAACA,EAAW,EAAK,EAAEG,EAAY,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAC1qB,EAAE,YAD2SE,GAAG,CAAC,GAAG,CAACN,EAAQ,OAAO,GAAK,CAAC,KAAAO,EAAK,IAAAC,EAAI,MAAAC,EAAM,OAAAC,CAAM,EAAEJ,EAAE,cAAc,sBAAsB,EAAQK,GAAGL,EAAE,QAAQC,GAAME,EAAM,IAAUG,GAAGN,EAAE,QAAQE,GAAKE,EAAO,IAAIN,EAAY,CAAC,EAAAO,EAAE,EAAAC,CAAC,CAAC,CAAE,EACpc,SAAsBP,EAAK,MAAM,CAAC,IAAIR,EAAM,IAAI,eAAe,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,WAAW,0BAA0B,gBAAgB,GAAGM,EAAS,CAAC,KAAKA,EAAS,CAAC,IAAI,UAAUH,EAAQ,SAASF,CAAI,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAE,CAC1Re,EAAoBjB,EAAqB,CAAC,MAAM,CAAC,KAAKkB,EAAY,MAAM,MAAM,OAAO,EAAE,KAAK,CAAC,KAAKA,EAAY,OAAO,MAAM,OAAO,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,aAAa,GAAG,EAAE,cAAc,CAAC,KAAKA,EAAY,OAAO,MAAM,iBAAiB,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,aAAa,EAAE,CAAC,CAAC",
  "names": ["ImageWithHoverEffect", "image", "zoom", "moveIntensity", "hovered", "setHovered", "ye", "position", "setPosition", "p", "e", "left", "top", "width", "height", "x", "y", "addPropertyControls", "ControlType"]
}
