Pixel UI/Hero sections/Disc image hero

Disc image hero

A product shot of a disc, alive: the rainbow blooms and breathes, the whole shot drifts in depth.

<piix-hero>WebGL

Out Friday

Spectrum

Find out more

Give <piix-hero> any picture with image="…" and it keeps the picture exactly as it is, but brings it to life on the GPU: brighter parts sit nearer and shift with the pointer, glowing areas breathe and bloom, heat haze ripples over the hottest parts, the camera breathes slowly and a soft light sweeps across. Same effect on its own: <piix-image-fx effect="alive">.

Installation

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

Usage

<piix-hero image="your-picture.jpg">
  <p class="eyebrow">Out Friday</p>
  <h1>Spectrum</h1>
  <piix-glow-button look="chrome">Find out more</piix-glow-button>
</piix-hero>

API reference

AttributeWhat it doesDefault
imageany picture (on your site, or served with CORS)–
palettetints the bloom and the light sweepsunset
heightany CSS lengthmin(88vh, 780px)
aligncenter or leftcenter

Accessibility