Make a 3D flip card and copy the code
Type the front and the back. Get a card that turns over on hover or tap, as HTML and CSS or React.
- Free, no sign-up
- Runs in your browser
- HTML + CSS, React
Put a | between the front and the back. Add a colour like #0f766e if you want one.
Nothing in mind? Try one:
How it works
- Type the front and the back. Put a | between them: "Pro plan | 20 GB storage, priority support". A question on the front, like "What does HTTP 404 mean?", gives a card that turns on click or tap, like a flashcard. Add a colour like #0f766e to set the front.
- Turn it and tune it. The preview is a real card: hover over it, tap it or press "Show the back". Choose what turns it, which way, how fast, the curve and depth, how far it lifts, the colours, size, corners and title size.
- Check it. The page checks the timing against the animation rules for cards (a turn in 300 to 400 ms, never linear, a lift of 8 to 12 px in 200 to 250 ms), the depth against the card's width, the text contrast on both sides and whether the text fits.
- Copy it. As HTML and CSS, CSS only, HTML only, the small JavaScript function a click card needs, or a React component, or download a standalone .html page.
Questions
- How long should a card flip take?
- The cards-containers skill times a card's change to its detail at 300 to 400 ms, easing in and out and never linear. A card in use lifts 8 to 12 px in 200 to 250 ms, and its shadow grows 2 to 3 times deeper.
- Does a hover flip card work on phones?
- Yes. The card can take focus, so a tap on a phone turns it and a tap elsewhere turns it back. For cards people turn back and forth on purpose, like flashcards, pick Click or tap: the card becomes a button that turns on every tap.
- Is the flip card accessible?
- A hover card takes focus with Tab and turns while focused. A click card is a real button: Enter and Space turn it, and aria-pressed tells screen readers which side shows. The CSS has a prefers-reduced-motion rule that fades to the back instead of turning, and the page checks both sides for 4.5:1 text contrast.
- Is anything uploaded?
- No. The card, the check and the code are made in your browser. The optional AI advice sends the settings and your description, only when you press its button. If you sign in, the cards you copy or download are also kept in your SkillSafe account.
- Do I need JavaScript?
- Not for a hover card: it is all CSS. A click card needs a few lines that switch aria-pressed on each click, and the React component does the same with useState. The turn itself is always CSS: the inner layer rotates 180 degrees and each side hides its back face.