vid-tag'); document.querySelector('.mspop__close--inline-top').addEventListener('click',function() { serxTag.classList.remove('.covid-tag'); }); document.addEventListener('scroll', function(){ let yScroll = window.scrollY; let moveTag = document.querySelector('.serx-tag'); let mspopInlineTopCL = Boolean(document.querySelector('.mspop__popup--inline-top')); (yScroll == 0) ? serxTag.classList.add('covid-tag') : serxTag.classList.remove('covid-tag'); }) });