PageSourceSearch

https://www.matteoperin.com/assets/Magnetic-Cfl4JBpz.js

js matteoperin.com collected 2026-10-04 05:28:59 UTC 610 bytes, 1 lines download raw bytes

1import{r as n,j as M}from"./react-vendor-dpj5Ksn7.js";import{m as g}from"./framer-motion-CkLa0mJG.js";const j=({children:i,strength:t=.35})=>{const e=n.useRef(null),[s,o]=n.useState({x:0,y:0}),a=l=>{const{clientX:r,clientY:m}=l,{height:d,width:p,left:u,top:x}=e.current?.getBoundingClientRect()||{height:0,width:0,left:0,top:0},f=r-(u+p/2),y=m-(x+d/2);o({x:f*t,y:y*t})},c=()=>{o({x:0,y:0})};return M.jsx(g.div,{ref:e,onMouseMove:a,onMouseLeave:c,animate:{x:s.x,y:s.y},transition:{type:"spring",stiffness:250,damping:25,mass:.1},className:"magnetic",style:{display:"inline-block"},children:i})};export{j as M};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.