Directory : /home/aplikasiposinfo/public_html/dbon.kaltimprov.go.id/public/js/ |
Current File : /home/aplikasiposinfo/public_html/dbon.kaltimprov.go.id/public/js/animate.js |
const observer = new IntersectionObserver((entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { entry.target.classList.add('show') } else { entry.target.classList.remove('show') } }); }); const hiddenElements = document.querySelectorAll('.hidden') hiddenElements.forEach((el) => observer.observe(el));