Pixel UI/Text/Reveal text

Reveal text

Words that resolve out of a mosaic when they scroll into view.

<piix-text>WebGL

Pixel perfect

Palette

The words start as big chunky blocks and resolve, pixel size by pixel size, into crisp letters the first time they come on screen.

Installation

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

Usage

<h1>
  <piix-text effect="reveal" palette="aurora">Pixel perfect</piix-text>
</h1>

Examples

One word in a headline

It takes the font, size and weight of wherever you put it, so it drops straight into your own heading.

Build something loud

Chunkier pixels

Big pixels

API reference

AttributeWhat it doesDefault
effectshine reveal glitch wave melt scanshine
palettethe colours: lime aurora sunset ocean candy violet fire gameboy paper mono, or your own, dark to light: "#000,#6b4cff,#fff"lime
pixelsize of one pixel, in px2

Accessibility