It's the colorful ribbon that expands ...
The trick is to use transform
associated with the pseudo element :after
and with a transition in zoom, type magnifying effect.
Something like this:
div {
width: 150px;
}
div:after {
display: block;
content: '';
border-bottom: 5px solid #2e7061;
transform: scaleX(0);
}
div:hover:after {
transform: scaleX(1);
transition: transform 325ms ease-in-out;
}
<div>Traz aqui o mouse!</div>