CREATIVE / ART DIRECTION
ies) => { entries.forEach((entry) => { const iframe = entry.target; const player = players.find((p) => p.element === iframe); if (!player) return; if (entry.isIntersecting && entry.intersectionRatio >= 0.5) { player.play().catch(() => {}); } else { player.pause().catch(() => {}); } }); }, { threshold: [0, 0.25, 0.5, 0.75, 1] }); videoWrappers.forEach((iframe) => observer.observe(iframe)); });