06.18 · 3D & Advanced

3D Flip Card

A card turns over in 3D to show its back. Best for profile and product cards.

Click it

Click or tap the card to turn it over, or press Show me.

AV
Ava Reyes
Motion Engineer
Tap or click to flip →
Details
TeamInterface Systems
LocationLisbon
FocusCSS 3D · WebGL
Joined2021
← Flip back
Back shows through Back hidden Two faces, back to back (pulled apart here) The back starts turned away Dashed: a face pointing away is hidden Turns on this line in about two thirds of a second

Try it

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

Flip direction

Sideways turns like a page; up and over like a flap.

Speed

How long one turn takes.

3D depth

Strong looks closer and more dramatic.

More optionsFewer options

Pointing flips it; a tap still flips it on phones.

Tilt toward the pointer

The card leans toward a hovering pointer.

Copy the prompt

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

Add a 3D flip to [the card you want to turn over]. Place the front and back faces in the same spot, turn the back face around so it faces away, and hide whichever face points away from the viewer. Clicking, tapping or pressing Enter turns the card over in 3D to show its back, and again to show its front. Give the card's container a 3D perspective so the turn has depth. When the settings include it, pointing at the card can flip it too, and the card can lean toward a hovering pointer. If the visitor has reduced motion turned on, swap the faces with a quick fade instead of turning. 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

  • Profile cards
  • Product cards
  • Flashcards
  • Quiz answers

Avoid on

  • Long text
  • Key information