Pixel UI/Sections/Divider

Divider

A moving pixel edge between two sections, instead of a hard line.

<piix-divider>WebGL
Kind
Line

One section's colour flows into the next across a living edge: rolling waves, a mountain ridge, stepped stairs, drips or a dithered fade. A thin line of light runs along it, and it lifts a little under the pointer. Set from and to to the two sections' backgrounds.

Installation

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

Usage

<piix-divider kind="wave" from="#17121f" to="#f3eee3"></piix-divider>

Examples

Between two sections

Flipped

flip turns it upside down, for going back from light to dark.

API reference

AttributeWhat it doesDefault
kindwave mountains stairs drip dissolvewave
fromthe colour above#17121f
tothe colour below#f3eee3
palettethe line of light along the edgelime
heightpx or any CSS length120px
pixelsize of one pixel, in px6
flipturn it upside down–

Accessibility