Coin-Flip Billing Toggle

Motion Components · Vol. 2

Component

Coin-Flip Billing Toggle

A real-time three.js levitating gold coin. Flip the switch, or click the coin: it tosses three and a half turns, lands with a shockwave and a shower of bouncing coins, and the price rolls to the new plan.

Variants

Sizes and states, all built from the same markup.

Small card (timer-driven)
Default card (timer-driven)
Disabled

Usage

Paste the markup, include assets/css/tokens.css and assets/css/tailwind.css, then run the script from this page.

Accessibility