Pixel UI/Buttons/Glow button

Glow button

A button with light chasing round its pixel border.

<piix-glow-button>WebGLForm-ready
Get started
Look
Palette
Size

A band of light runs round the pixel border, drawn on the GPU and dithered into the palette. Hover and a spotlight follows the pointer across the face; click and a ring ripples out from where you clicked.

Installation

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

Usage

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

Examples

Looks

One attribute changes the whole style. Glass blurs whatever is behind it, so it shines over a scene or a photo.

Get started Get started Get started Get started Get started

Palettes

Launch Join Deploy Play

Sizes

Small Medium Large

In a form

It submits and resets the form it's in, like a real button.

Send Reset

Disabled

Sold out

API reference

AttributeWhat it doesDefault
lookglow chrome glass riso crt: the whole style. See Looksglow
palettethe colours: lime aurora sunset ocean candy violet fire gameboy paper mono, or your own, dark to light: "#000,#6b4cff,#fff"lime
sizesm md lgmd
typebutton submit resetbutton
disabledgreyed out, can't be pressed–
pixelsize of one pixel, in px3

Events

EventWhen
clicklike any button

Accessibility