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.
Inside, the two faces are pulled apart: the back starts turned away, the card turns around the gold line, and the face pointing away is hidden (dashed). Click the card or press Show me.
Back shows through: without hiding the face pointing away, the back covers the front, mirrored until it turns; Back hidden: each face shows only from its own side. Click the card or press Show me.
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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.