1let ticking = false; 2 3window.addEventListener('scroll', () => { 4 if (!ticking) { 5 window.requestAnimationFrame(() => { 6 const sections = document.querySelectorAll('.paragraph--type--imatge-hero .static'); 7 sections.forEach(section => { 8 const img = section.querySelector('img'); 9 if (!img) return; 10 const rect = section.getBoundingClientRect(); 11 12 if (rect.top < window.innerHeight && rect.bottom > 0) { 13 const offset = rect.top; 14 img.style.transform = `translateY(${offset * -0.6}px)`; 15 } 16 }); 17 18 ticking = false; 19 }); 20 21 ticking = true; 22 } 23});
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.