Skip to content
WunderUI
All effectsButton

Face Flip

The label flips over like a card to show a second label, for toggles and two-state buttons.

Pure CSSButton

Meant for

ButtonToggleBadge

Usage

On a Button

Click it. A control turning over to show its other side, in 350 ms when you set data-state="on" — a transition, so toggling fast turns it back from wherever it is. The two faces are two real buttons in one grid cell with backface-visibility: hidden, so only the one facing you is drawn — and the control keeps one size, because both faces are always in the layout. The perspective goes on a wrapper, never on the turning element.

The class is wm wm-face-flip — the first half is the marker the trigger and reduced-motion rules hook into, the second is the effect.