WALLPAPERS & FABRICS

Wallpapers & Fabrics

document.addEventListener("DOMContentLoaded", function () { const items = document.querySelectorAll('.e-con-inner > a'); const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.style.animationPlayState = 'running'; } }); }, { threshold: 0.2 }); items.forEach(item => { item.style.animationPlayState = 'paused'; observer.observe(item); }); });