Skip to main content
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →
UI Patterns1 min read·Updated November 2026·By the ExodeUI team

Card Flip Animation: 3D Flips That Read Well

How to build and design card flip animations: CSS perspective and backface-visibility, timing, when flipping helps, accessibility and reduced motion.

Direct Summary & Definition

Core Takeaway

A card flip rotates a card in 3D to reveal its back, which suits flashcards, reveals and before-and-after views. In CSS, put the front and back on two faces, give the parent perspective, rotate the inner element on the Y axis and hide each face's back with backface-visibility. Keep the flip around 400 to 600 ms and give it a non-3D fallback for reduced motion.

When flipping helps

A flip implies two sides of the same thing: a question and its answer, a front and its details, a hidden reward and its reveal. It is less useful for unrelated content or for navigation, where the 3D motion adds time without meaning.

How it works in CSS

The classic structure is three layers:

  • A container with perspective, which sets how strong the 3D effect looks
  • An inner element with transform-style: preserve-3d that rotates
  • Front and back faces, the back pre-rotated 180 degrees
  • backface-visibility: hidden on both faces so only one shows

Timing and feel

Flips need a little more time than flat transitions because the motion travels through depth, often around 400 to 600 ms. An ease-in-out curve, or a spring with slight overshoot, feels natural. Very low perspective values distort the card; moderate values look more realistic.

Accessibility

Make the flip trigger a button, and make both sides' content available to screen readers in a sensible order, or announce the change. Under reduced motion, replace the flip with a crossfade. Avoid flipping automatically on a timer.

Building this in ExodeUI

In ExodeUI, which we make, a flip or reveal is a state transition your code triggers, and springs can add a slight overshoot. For simple flashcards, CSS 3D transforms are enough.

Key Principles to Remember

  • Use flips for two sides of one thing
  • Perspective, preserve-3d, two faces and backface-visibility
  • Around 400 to 600 ms with a natural curve
  • Button trigger, readable content and a crossfade fallback

Frequently Asked Questions

Sources

  1. backface-visibility — MDN Web Docs
  2. perspective — MDN Web Docs
  3. transform — MDN Web Docs

Related Guides & Examples

Reveals with states

Open the surprise gift box for a reveal driven by states rather than a fixed timeline.

Open the gift box
Try for free