Skip to content
Components102 / 118

Liquid Buttons

Three call-to-action buttons filled with living pictures. A picture floods the pill from exactly where your cursor enters and drains toward where it leaves, drifting against your cursor; an arc of picture races round a hairline border until the whole outline is lit; a disc blooms with a picture as its arrow shoots through. Every one pulls toward you and squashes as you press.

GSAPImage fillsMagneticKeyboard friendly60fpsReduced-motion safe
Hover from different sides, then press

Tweak

LIVE

Labels

Pictures

Bloom

Orbit

Arrow

Feel

4.0s
1.00

Props

9 props
  • BloomButtoncomponent
    Picture-fill pill. Props: children, image, fill, color, hoverColor, font, magnetic, href, onClick.
  • OrbitButtoncomponent
    Travelling picture border. Props: children, image, fill, background, color, period, font, magnetic, href, onClick.
  • ArrowButtoncomponent
    Magnetic picture disc. Props: label, image, size, background, hoverBackground, color, hoverColor, direction, magnetic, href, onClick.
  • imagestring
    The picture revealed on hover (abstract textures work best). fill / hoverBackground show where there is none.
  • periodnumber
    Seconds per orbit at rest; hover runs three times faster.default 4
  • direction"up-right" | "right"
    Which way the arrow points and shoots.default "up-right"
  • magneticnumber
    How strongly a button is pulled toward the cursor. 0 turns it off.default 0.2 (arrow 0.45)
  • fontstring
    Label font (inherits by default).
  • hrefstring
    Renders a link instead of a button.