Skip to content
Components70 / 118

Glassy Button

A thick slab of frosted glass you can push. Hover and it rises with a jelly wobble, takes on a tint inside the glass and its shadow softens as it climbs. It tilts toward your cursor: a soft specular slides across, the label sits deeper in the glass with parallax and a faint chromatic fringe. Press to sink and squash it.

ButtonGlassTiltSpringsSquash & stretchGSAP
Hover, then move across itPress and hold

Tweak

LIVE

Text

Look

60px
#8f86ff

Props

7 props
  • labelstring
    Button text.default "Glassy Button"
  • hrefstring
    Render a link.
  • onClick() => void
    Click handler.
  • sizenumber
    Height, px.default 56
  • tintstring
    The colour the glass picks up on hover.default "#8f86ff"
  • inkstring
    Text colour.default "#1b1b21"
  • classNamestring
    Extra classes.