Skip to content
Components71 / 118

Liquid Light Button

A dark glass button with a pool of light inside. The light follows your cursor like a liquid, warming from violet to blue across the button and lighting the hairline edge as it passes; it stretches when you move fast, settles with a squash and drains out the edge you leave by. Click for a ripple of light.

ButtonCursor lightGradient borderSpringsSquash & stretchGSAP
Sweep across it, fast and slowClick for a ripple

Tweak

LIVE

Text

Look

64px

Light

#8b2cf5
#2f55ff

Props

7 props
  • labelstring
    Button text.default "Button"
  • hrefstring
    Render a link.
  • onClick() => void
    Click handler.
  • sizenumber
    Height, px.default 56
  • fromstring
    The light on the left.default "#8b2cf5"
  • tostring
    The light on the right.default "#2f55ff"
  • classNamestring
    Extra classes.