0
people need to recreate the menu effect of this site: http://mpcaminhoes.com.br/ but I’m not succeeding, I managed to create the bar and make the bar grow but it grows above the menu, capping the writing.... The way I tried is by making a class 0 wide after in the Hover take full width and add the Transition, I tried to do with the own menu background but it doesn’t work because as originally need to be 0 wide, then the menu is without initial width.... I’m a beginner, can anyone help me? follow the css code
.hover-menu:after{
position: absolute;
top:0px;
border-radius: 0 15px 0 0;
left:0%;
width:0;
height:50px;
background:#fb3c03;
display:block;
content:"";
transition: width 0.5s ease-in-out;
}
.hover-menu:hover:after{
width:100%;
}
I took this code from a project and it uses the empty content... if I remove this empty content it doesn’t work.. css the Hover menu class is in my "a"
fix in html the menu class Hover is in my "a"
– André
Put your html in, too, André
– Bia Silva