PageSourceSearch

https://brandcrushmonday.co/assets/PortfolioMotion-DI9dp-Yc.js

js brandcrushmonday.co collected 2026-10-09 21:59:54 UTC 1,426 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t}from"./framework-CXnKph_e.js";var n=e(t(),1);function r(){return(0,n.useEffect)(()=>{let e=document.getElementById(`portfolio`);if(!e)return;let t=Array.from(e.querySelectorAll(`.agency-project-grid > article`)),n=window.matchMedia(`(prefers-reduced-motion: reduce)`),r=[[-1,.3,-7],[1,.15,7],[-.7,1,-5],[.7,-1,5],[-1,-.5,-6],[1,.8,6],[0,1,-4],[1,-.6,5]],i=0,a=()=>{i=0;let a=window.innerHeight,o=window.innerWidth,s=t.map(e=>e.getBoundingClientRect().top);t.forEach((e,t)=>{let i=n.matches?1:Math.max(0,Math.min(1,(a*1.05-s[t])/(a*.7))),c=(1-i)**2,[l,u,d]=r[t%r.length];e.style.setProperty(`--flight-x`,`${l*Math.min(o*.5,650)*c}px`),e.style.setProperty(`--flight-y`,`${u*a*.35*c}px`),e.style.setProperty(`--flight-turn`,`${d*c}deg`),e.style.setProperty(`--flight-opacity`,String(.15+.85*i))}),e.dataset.flightReady=`true`},o=()=>{i||=requestAnimationFrame(a)};window.addEventListener(`scroll`,o,{passive:!0}),window.addEventListener(`resize`,o),n.addEventListener(`change`,o);let s=new ResizeObserver(o);return s.observe(e),a(),()=>{cancelAnimationFrame(i),s.disconnect(),window.removeEventListener(`scroll`,o),window.removeEventListener(`resize`,o),n.removeEventListener(`change`,o),delete e.dataset.flightReady,t.forEach(e=>[`--flight-x`,`--flight-y`,`--flight-turn`,`--flight-opacity`].forEach(t=>e.style.removeProperty(t)))}},[]),null}export{r as default};

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.