Pixel UI/Buttons/Liquid button

Liquid button

A button made of liquid metal that reaches for your cursor.

<piix-liquid-button>WebGLForm-readyNew
Get started
Look
Size

Drawn on the GPU as a smooth signed distance field and shaded as a real material: chrome, glossy ink, clear water or honey, mirroring a studio with a hard horizon line. Its edge breathes; bring the pointer near and a bead of liquid stretches out toward it and joins back when you leave. Click and droplets splash out and fall back in.

Installation

<!-- once, anywhere on the page: every component -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/piixpal.min.js"></script>

Usage

<piix-liquid-button>Get started</piix-liquid-button>

Examples

Looks

Chrome Ink Water Honey

Your own material

Three colours: the floor it reflects, the bright horizon, the sky.

Mint

Sizes

Small Medium Large

API reference

AttributeWhat it doesDefault
lookchrome ink water honey: the liquid's materialchrome
colorsyour own material, three colours: floor, horizon, sky (overrides look)–
textlabel colourthe look's
sizesm md lgmd
typebutton submit resetbutton
hrefmakes it a link–
disabledgreyed out, can't be pressed–

Events

EventWhen
clicklike any button

Accessibility