Hi,
I am trying to add custom hover and active styling to my footer.
.menu .menu__item a {
position: relative;
display: inline-block;
padding: 0 4px;
}
.menu .menu__item a::after {
content: “”;
position: absolute;
left: 4px;
right: 4px;
bottom: -2px;
height: 2px;
background-color: #e71d2f;
transform: scaleX(0);
transform-origin: left;
transition: transform 0.25s ease;
}
.menu .menu__item a:hover::after {
transform: scaleX(1);
}
this is the code, it is working for the hover state, but the styling for active link isn’t working.
I want the same underline styling for the active menu link.
Cheers