Home / AI Era Interfaces / Holographic

Holographic CSS Template, Free with Live Demo

Free holographic card template with an iridescent rainbow shine that shifts as the card tilts under your cursor. Built for a festival pass. Live demo. The example is Nova Pass, a festival membership card.

Open live demoDownload HTML fileView code on GitHub
Holographic CSS template example: Nova Pass, a festival membership card

What is holographic?

Holographic style copies the rainbow foil on trading cards and ID cards. As you tilt the card, the colors slide across it and a bright shine moves with your view.

The card tilts in 3D with CSS transforms. The rainbow is a wide gradient blended on top, and moving the mouse shifts its position, so the colors really seem to change with the angle.

Good for

  • Membership and loyalty cards
  • Event tickets and passes
  • Collectible and gaming sites
  • Premium product launches

What you get in this template

The key CSS

This is the part that makes the holographic look work. Copy it into your own project.

.card {
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .15s ease-out;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  mix-blend-mode: screen; opacity: .6;
  background: linear-gradient(115deg, transparent 20%, #ff4fb4 30%, #3fe0ff 40%,
    #7dff6a 50%, #ffd23f 60%, #9b6bff 70%, transparent 80%);
  background-size: 250% 250%;
  background-position: var(--mx) var(--my);
}

How to use it

  1. Click Download HTML file above.
  2. Open the file in any code editor, like VS Code.
  3. Change the text, colors and links to match your project. Colors are at the top of the style tag.
  4. Upload it to any host, such as GitHub Pages, Netlify or your own server. It is one file with no build step.

Questions people ask

How do you make a holographic effect in CSS?

Layer a wide rainbow gradient over the card with a blend mode like screen, then change its background-position as the mouse moves. Add a 3D tilt for the full effect.

How does the 3D tilt work?

The parent has perspective set, and the card uses rotateX and rotateY with values based on where the cursor is over the card.

Will it work on phones?

The card shows the rainbow at rest on phones. The tilt reacts to touch and drag as well.

More AI Era Interfaces designs