
N° 0973 · toggle
Language Switch is a toggle switch animation. It responds to click, keyboard and i18n. Palettes: Gallery lilac, Tea chest, Harbour night, Celadon and Indigo dye.
Radios named lt-lang; on change every [data-i18n] in the document gets class-driven opacity 0 for 75 ms, its textContent is replaced from the merged .lt-dict JSON, html lang is set, and the opacity returns over 75 ms. Several switches on one page stay in sync. localStorage key lt-lang restores the choice without a fade on the next visit.
The preview is the shipped element inside a neutral demo page. Hover, click, focus: the one interaction it is about is live.
Token sets re-tint it live. The prompt carries the one you chose.
A paste-in snippet, or a component for Next.js, React, Vue, Astro, WordPress, Shopify or Webflow.
It quotes the markup, styles and script verbatim with the tokens and the rules that keep it self-contained.
It inherits your page's font and width; the tokens live on :root; several instances share one script.

N° 0973 · toggle

N° 0801 · toggle

N° 0798 · toggle

N° 0797 · toggle

N° 0796 · toggle

N° 0799 · toggle

N° 0408 · toggle

N° 0410 · toggle

N° 0837 · text

N° 0964 · text

N° 0831 · card

N° 0826 · loader

N° 0823 · image

N° 0810 · input

N° 0807 · input

N° 0803 · cursor