Report a problem or share feedback← Catalog
Toggle
freetransitions/toggle
On/off switches — settings rows, theme toggles, feature flags. The thumb travels across the track with a two-step overshoot (past the end, back, settle) while the track color cross-fades on its own clock.
$
npx skills add Jakubantalik/transitions.dev # then ask: "apply the toggle transition"- Source
- transitions.dev
- Kind
- transition
- Categories
- transition, input
- Use as
- recipe — technique you apply to your own markup
- Applies to
- inputform
- Motion
- on state · subtle · css · low cost · respects reduced motion
- Tags
- css
- Licence
- Free for unlimited personal/commercial use in your products; no republishing the collection. Pro (React/TS variants) $9/mo or $149 lifetime.
- Live demo
- transitions.dev
- Docs
- transitions.dev
Similar
Compare all 4 →- Clerk: Conditional Fieldmotion/clerk-conditional-fieldA password field that animates into a sign-in form only when it's needed. The container animates its measured height with Motion's resize() util while the field fades in.
- Checkbox checktransitions/checkbox-checkCheckboxes, to-do completion, multi-select rows — any boolean control where the checked state should feel earned. The box's background fills first, then the checkmark draws itself via stroke-dashoffset after a short delay; unchecking reverses quickly with no draw.
- File Uploadaceternity/file-uploadDrag-and-drop upload with grid background and micro-interactions.