Textunderlinehoverlink
Animated Underline
An underline that draws from left to right on hover. Clean alternative to default text-decoration. Change direction by using right: 0 instead of left: 0.
.animated-underline {
position: relative;
text-decoration: none;
}
.animated-underline::after {
content: "";
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: #8b5cf6;
transition: width 0.3s ease;
}
.animated-underline:hover::after {
width: 100%;
}