[Solved] Link underline with transition


I made it for you as exactly the same as the link mate

ul{
  list-style: none;
  position:relative;
  display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    list-style-type: none;
    margin: 0;
}

li {
      display: flex;
    margin: 0 0.5rem;
    font-size: 1.1rem;
    line-height: 2rem;
    cursor: pointer;
    flex: 1;
}

a{
  text-decoration: none;
  color: #666;
}

a:after{
  cursor: pointer;
    content: '';
    display: block;
    margin: 0 auto;
    width: 0;
    height: 2px;
    background: #b5cad7;
    transition: width .4s;
}

a:hover:after{
  width:100%;
}
<ul>
<li><a href="#">Test 1</a></li>
<li><a href="#">Test 1</a></li>
<li><a href="#">Test 1</a></li>
<li><a href="#">Test 1</a></li>
</ul>

MyFiddle

Don’t know why many programmer here are rude.

2

solved Link underline with transition