CSS Live Preview Available

Animated Underline

Elegant animated underline effect on text hover

CSS3UnderlineHoverAnimationText

Code

.animated-underline {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  position: relative;
}
.animated-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
  transition: width 0.3s ease;
}
.animated-underline:hover::after {
  width: 100%;
}

HTML

<"attr-name"</span>>class</span>="tag"</span>>a</span> "attr-name"</span>>href</span>="#"</span> "attr-name"</span>>class</span>="animated-underline"</span>>Animated Underline</"attr-name"</span>>class</span>="tag"</span>>a</span>>

Live Preview