Pixel UI/Hero sections/Glass image hero

Glass image hero

A glass object on black, alive: its colours glow and pulse, the light sweeps across.

<piix-hero>WebGL

Set 001

Escape the ordinary.

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">Set 001</p>
  <h1>Escape the ordinary.</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