Pixel UI/Text/Scan text

Scan text

A scanline that sweeps down, lighting the letters as it passes.

<piix-text>WebGL

Pixel perfect

Palette

A bright scanline rolls down through the words like an old CRT, lighting up each row as it passes and leaving a dithered afterglow.

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="scan" 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