Transparent button hover effect with CSS

Transparent button playground

Hover with a mouse or Tab to either link. Use the preview checkbox to compare both styles without opening their destinations.

Filled to transparent

Explore gradients

The fill disappears while the border and label stay visible.

Transparent to filled

View text effects

The outline style gains a fill and switches to a white label.

The two active controls are navigation links styled as buttons. The disabled example is a native button with no action. No link is nested inside a button.

Reduced motion removes the color transition. On touchscreens, links navigate normally; the checkbox provides a separate visual preview. Preview requires CSS :has() support.

Gradient example

This is a local sample destination that works offline.

Back to the playground

Text effect example

This is a local sample destination that works offline.

Back to the playground