PageSourceSearch

https://www.turismevilafranca.com/themes/custom/vilafranca/scripts/imatge_hero.js?tm9c81

js turismevilafranca.com collected 2026-10-02 12:26:04 UTC 627 bytes, 23 lines download raw bytes

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.