Pixel UI/Motion/Cursor trail

Cursor trail

A pixel comet, or a soft glow, that follows the pointer across the page.

<piix-cursor>WebGL

Move your pointer anywhere on the page.

Kind
Palette

One tag anywhere on the page. trail leaves a comet of dithered pixels that fade as they fall away; glow is a soft pixel halo. It never gets in the way of clicks and rests the GPU when the pointer is still. It is running on this page right now: move your pointer.

Installation

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

Usage

<piix-cursor></piix-cursor>

API reference

AttributeWhat it doesDefault
kindtrail glowtrail
palettethe colours: lime aurora sunset ocean candy violet fire gameboy paper mono, or your own, dark to light: "#000,#6b4cff,#fff"lime
sizehow big, 0.5 to 31
pixelsize of one pixel, in px4

Accessibility