fbpx
R29’s Extra Gifted Mother’s Day Gift Guide

R29’s Extra Gifted Mother’s Day Gift Guide

const grabMarker = document.querySelector('.tmp-sticky-marker'); const grabSticky = document.querySelector('#tmp-sticky'); const grabGlobalHeader = document.querySelector('.global-header'); var observer = new IntersectionObserver( function ( entries, observer ) { console.log("observed"); entries.forEach(entry => { if(entry.intersectionRatio!=1) { grabSticky.classList.add("tmp-sticky-on"); grabSticky.classList.remove("tmp-sticky-off"); grabSticky.height = "max-content"; grabSticky.width = "max-content"; if (window.innerWidth < 768) { grabGlobalHeader.style.display = "none"; } } else { grabSticky.classList.add("tmp-sticky-off"); grabSticky.classList.remove("tmp-sticky-on"); grabSticky.height = "max-content"; grabSticky.width…

Must Read