const grabMarker = document.querySelector('.tmp-sticky-marker'); const grabSticky = document.querySelector('#tmp-sticky'); c...

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 = "max-content"; if (window.innerWidth < 768) { grabGlobalHeader.style.display = "block"; } } }); } ); observer.observe(grabMarker);

From last-minute blooms to surprise bottles of wine and the good EVOO, we’ve got your Mom’s Day crowdpleasers that are ready to deliver.

PHOTOGRAPHED AND STYLED BY KAITLYN FLANNAGAN; DESIGN BY HANNAH MINN

Like what you see? How about some more R29 goodness, right here?



from Refinery29 https://ift.tt/3xh7ljJ
via IFTTT