Pixel UI/Text/Glitch text

Glitch text

Colour split and slipping rows, in bursts.

<piix-text>WebGL

Pixel perfect

Palette

Every so often the text tears: rows slip sideways, the colour channels split apart, and blocks of noise flash through. Between bursts it holds still, so it stays readable.

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="glitch" palette="candy">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