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.

SHORT LINK

Explore CSS gradients

A short label with a persistent gradient underline.

WRAPPING LINK

Build a responsive vertical timeline with HTML and CSS

A longer link wraps naturally and keeps an underline on each text fragment.

KEYBOARD FOCUS

Try an animated background

Tab 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 playground

Responsive timeline

This is a local sample destination. It works offline.

Back to the playground

Animated background

This is a local sample destination. It works offline.

Back to the playground