Pixel UI/Feedback/Progress

Progress

A segmented progress bar with a pal running along the front.

<piix-progress>DOM + canvas
Pal
Tone

Blocks fill in one segment at a time and a pal runs along the leading edge, keeping pace. At 100% it stops and cheers. Leave out the value and it's indeterminate: the pal paces back and forth.

Installation

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

Usage

<piix-progress value="40"></piix-progress>

Examples

Working…

No value: indeterminate.

API reference

AttributeWhat it doesDefault
valuehow far, 0 to max (leave out for "working…")–
maxthe end100
palwho runspix
tonethe fill colourlime
segmentshow many blocks20
labelwhat's loading, for screen readersLoading

Accessibility