Hi,
You can try this CSS out:
/* for articles */
.slideout-navigation.main-navigation .main-nav ul li a{
position:relative;
}
.slideout-navigation.main-navigation .main-nav ul li a:after {
content: "";
position: absolute;
right: 0;
left: 0;
bottom: 0;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
display: block;
width: 0;
height: 2px;
background-color: currentColor;
transition: 0.3s width ease;
}
.slideout-navigation.main-navigation .main-nav ul li a:hover:after {
width: 50%;
}
You can change the left
, right
& translateX()
values for its placement. You can also change width:50%
if you want longer lines.