@mubizzy
Posted
nice work @blessingOluwapelumi you did a great job. about the hover features, you need to rotate the icon using CSS properties for Example.
.dropdown:hover .dropdown__icon {
transform: rotate(180deg);
}
.dropdown__icon {
transition: .5s;
}
hope it helps :)
@mubizzy Thanks for your response I tried this but both the "Features" text and the icon is affected. I mean, both the text and icon rotates on HOVER
@mubizzy
Posted
@blessingOluwapelumi then you need to rearrange your HTML.
@mubizzy Alright, thanks
@mubizzy
Posted
@blessingOluwapelumi i will send you a js snippet of mine if that still doesn't work.
const menu-item= document.querySelectorAll('.menu-item');
function linkAction(){
/*Active link*/
menu-item.forEach(n => n.classList.remove('active'));
this.classList.add('active');
}
navLink.forEach(n => n.addEventListener('click', linkAction));