Pixel UI/Motion/Reveal

Reveal

Content that dissolves in, pixel by pixel, when it scrolls into view.

<piix-reveal>WebGL
Your screenshot
Pattern
Edge

Wrap anything. Until it's on screen it hides under a layer the colour of the page; then that layer breaks up into pixels and falls away, with a glowing edge where it's dissolving. Once it's done the GPU rests.

Installation

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

Usage

<piix-reveal pattern="dither">
  <div class="shot">Your screenshot</div>
</piix-reveal>

Examples

Staggered

Use delay to stagger a grid.

one
two
three

API reference

AttributeWhat it doesDefault
patterndither rain scan spiraldither
colorwhat it dissolves out ofthe background behind it
palettethe glowing edgelime
durationseconds1.1
delayseconds to wait once it's on screen0
pixelsize of one pixel, in px6

Events

EventWhen
piix:revealedwhen it has finished

Accessibility