people should recreate the effect of the menu on that site: link however I am not getting it, I was able to create the bar and make the bar grow but it grows over the menu, capping the writing ....... the way I tried it is doing a class with 0 width then on hover pick up width total and add the transition, I tried to do with the background of the menu but it does not work because as originally it needs to have 0 of width, then the menu is without initial width ..... I am beginner, can someone 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 got this code from a project and it uses the empty content ... if I remove this empty content does not work .. in css the hover class menu is in my "a"