PGHM
← Home var observer = new IntersectionObserver(function(entries){ entries.forEach(function(entry){ if(entry.isIntersecting){ entry.target.classList.add('is-visible'); observer.unobserve(entry.target); } }); }, { threshold:0.14, rootMargin:'0px 0px -8% 0px' }); items.forEach(function(item){ observer.observe(item); }); } if(document.readyState === 'loading'){ document.addEventListener('DOMContentLoaded', initPghmMotion); }else{ initPghmMotion(); } window.addEventListener('load', initPghmMotion); })(window, document);