Pixel UI/Cards/Holo card

Holo card

A holographic trading card that tilts under your hand.

<piix-holo-card>DOM + canvasNew

Nova

Legendary · #042

Hue

Like a rare foil card: it tilts toward the pointer in 3D while a rainbow foil slides across it at the angle of the light, sparkles glint in the foil, a glare follows you and faint scanlines remind you it's projected. On a phone, tap to wobble it.

Installation

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

Usage

<piix-holo-card style="width:250px">
  <img src="showcase/nova.jpg" alt="">
  <h3>Nova</h3>
  <p>Legendary · #042</p>
</piix-holo-card>

Examples

Any content, any hue

Ember

Rare · #117. Put anything inside.

API reference

AttributeWhat it doesDefault
huetint of the card's glass, 0 to 360250
intensityhow strong the foil is, 0 to 1.7
staticno tilt–

Accessibility