Animated gradient underline with CSS
Gradient underline playground
Hover with a mouse or Tab to a link. Each interaction plays one short color sweep. The links open real examples; use the preview checkbox to try the effect without following a link.
WRAPPING LINK
Build a responsive vertical timeline with HTML and CSSA longer link wraps naturally and keeps an underline on each text fragment.
KEYBOARD FOCUS
Try an animated backgroundTab to this link to see the focus outline and the short underline pass.
The checkbox plays one pass when checked. Uncheck and check again to replay. With reduced motion enabled the underline stays static. Link text and focus outlines remain visible.
CSS gradients
This is a local sample destination. It works offline.
Back to the playgroundResponsive timeline
This is a local sample destination. It works offline.
Back to the playgroundAnimated background
This is a local sample destination. It works offline.
Back to the playground