Holo text
A headline projected as a hologram.
<piix-holo-text>DOM + canvasNew<piix-holo-text>Signal acquired</piix-holo-text>
Hue
Calm
The words glow in projector light, split into cyan and magenta ghosts that drift apart and back, scanlines run through them, the beam fades toward the bottom, and now and then the projection stutters sideways. Hover to make it glitch.
Installation
<!-- once, anywhere on the page: every component --> <script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/piixpal.min.js"></script>
<!-- just holo text (the shared engine loads itself, once) --> <script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/dist/c/holo-text.min.js"></script>
npm install piixpal // once, in your entry file import "piixpal";
// npm install piixpal
import "piixpal";
export default function Page() {
return (
<piix-holo-text>Signal acquired</piix-holo-text>
);
}
Usage
<piix-holo-text>Signal acquired</piix-holo-text>
Examples
Magenta, calm
<piix-holo-text hue="300" calm>Standing by</piix-holo-text>
API reference
| Attribute | What it does | Default |
|---|---|---|
hue | the projector colour, 0 to 360 | 190 |
size | font size in px | fits, up to 88 |
calm | no stutters, just the glow and scanlines | – |
Accessibility
- Announced as a heading with its plain text.
- With reduced motion nothing drifts or glitches.