Pixel UI/Cards/Liquid card

Liquid card

A card whose face is liquid you can stir.

<piix-liquid-card>WebGLNew

Everything, forever.

Stir the surface with your pointer. Click it.

Look

A glossy liquid surface on the GPU: slow swells roll across it, the pointer drags a wake through it, and a click drops a ring that spreads to the edges. The outline breathes like a drop holding its shape. Your content sits on top.

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-card>
  <h3>Everything, forever.</h3>
  <p>Stir the surface with your pointer. Click it.</p>
</piix-liquid-card>

Examples

Light text on chrome

Bright materials want dark text: tone="light".

Chrome

A mirror you can stir.

API reference

AttributeWhat it doesDefault
lookchrome ink water honey: the liquid's materialink
colorsyour own material, three colours: floor, horizon, sky (overrides look)–
tonedark (white text) light (dark text)dark
radiuscorner radius, px26

Accessibility