# Flip Button

> A 3D card-flip button that rotates on hover to reveal a confirmation state using CSS perspective and `rotateY(180deg)` transform — fully design-system agnostic.

- Category: Button
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Roastery
- Dark mode: yes
- Access: premium (Atheros AI Pass)
- Tags: 3d, transform, animation
- Page: https://builder.atheros.ai/components/flip
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_flip/preview-9661a8fa8926.webp

## Features

- 3D card-flip effect using CSS `perspective` and `rotateY(180deg)` — GPU-composited, no layout thrash
- Front face shows "Confirm", back face shows "Done" with gradient background
- `transform-style: preserve-3d` and `backface-visibility: hidden` for correct depth rendering
- Single button centered on the page — no wrapper panel or showcase grid
- Hover and focus-visible both trigger the flip
- Active state adds `scale(0.95)` to the flipped position for tactile feedback
- Responsive design with prefers-reduced-motion support

## Accessibility

- **Button label** — `<button>` has `aria-label="Confirm"`
- **Theme toggle state** — `role="switch"` with `aria-checked` toggled by JS
- **Keyboard activation** — Theme toggle responds to Enter and Space
- **Focus indicators** — `:focus-visible` with `--ring` outline on all interactive elements
- **Flip on focus** — `.bfl-btn:focus-visible .bfl-btn__inner` triggers the flip
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations

## Keyboard shortcuts

- `Tab` — Move focus to the next interactive element
- `Enter / Space` — Activate focused button or theme toggle

## Common questions

**Which frameworks is Flip Button available in?**

Flip Button ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is Flip Button free?**

Flip Button is a premium component. Anyone can preview it; the source, downloads and AI customisation are included with Atheros AI Pass.

**Does Flip Button support dark mode?**

Yes. Flip Button ships light and dark themes, both drawn from the Roastery design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Flip Button live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/flip

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
