function hoverHead(){ function setAttributes(el, attrs) { for(var key in attrs) { el.setAttribute(key, attrs[key]); } } var headSec = document.getElementById('hoverMenu'); var listItems = headSec.querySelectorAll('ul'); var initBar = document.getElementById('initBar'); headSec.classList.add('openHead'); for(let i=0; listItems.length > i; i++){ setAttributes(listItems[i], {'aria-expanded':'true', 'aria-hidden':'fale'}); listItems[i].classList.add('openHead'); } } function leaveHead(){ function setAttributes(el, attrs) { for(var key in attrs) { el.setAttribute(key, attrs[key]); } } var headSec = document.getElementById('hoverMenu'); var listItems = headSec.querySelectorAll('ul'); var initBar = document.getElementById('initBar'); headSec.classList.remove('openHead'); headSec.classList.add('rev'); for(let i=0; listItems.length > i; i++){ setAttributes(listItems[i], {'aria-expanded':'false', 'aria-hidden':'true'}); listItems[i].classList.remove('openHead'); } } function expandListen(){ var headSec = document.getElementById('hoverMenu'); var initBar = document.getElementById('initBar');manCloseMenu var closeMenu = document.getElementById('manCloseMenu'); headSec.addEventListener('mouseenter', hoverHead); headSec.addEventListener('mouseleave', leaveHead); initBar.addEventListener('mouseenter', hoverHead); initBar.addEventListener('mouseleave', leaveHead); closeMenu.addEventListener('click', leaveHead); } window.onload = expandListen(); @media all and (min-width:1080px){ .rev{ height:0; transition: height 0.5s, opacity 0.5s; } #hoverMenu.rev{ height:auto; } .openHead{ display:block!important; position:relative!important; font-weight:700; opacity:0; transition:height 1s, opacity 1s; } #hoverMenu{ height:0!important; opacity: 0; } #hoverMenu.openHead{ height:800px!important; transition: height 1s, opacity 1s; opacity:1; } #hoverMenu .openHead{ opacity:1; } .openHead a.has-submenu{ font-weight:600!important; } #manCloseMenu{ cursor:pointer!important; } }

Fragrance

Narrow Your Search

3 Products