06.25 · 3D & Advanced

Holographic Card

A card tilts as you point, and its rainbow foil shimmers. Best for collectibles.

Hover it

Move your pointer over the card, drag a finger across it (or Tab to it and use the arrow keys), or press Show me.

Try it

Change a setting, then try it again or press Show me.

Foil pattern

The shine comes as soft bands, sparkling dots or fine lines.

How far it tilts

How far the card leans toward the pointer.

Glare

A spot of light that follows the pointer.

More optionsFewer options

The card comes apart into its picture, foil, glare and text.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a holographic foil to [the card you want to make shine]. Build the card from stacked layers: its picture, a rainbow sheet blended over it to light up the colors beneath, a spot of glare when the settings include one, and on top the text on solid panels so it stays readable. As the pointer moves over the card, tilt the card toward it in 3D, slide the foil with the tilt and keep any glare under the pointer. Ease each change, and move layers only by position and transparency so it stays smooth. On touch screens, dragging a finger does the same. If the visitor has reduced motion turned on, keep the card flat and the foil still, and only brighten it. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Trading cards
  • Membership cards
  • Rewards and badges
  • Product launches

Avoid on

  • Text-heavy cards
  • Dense grids