Report a problem or share feedback← Catalog
Characters remaining
curatedfreemotion/characters-remaining
An example of creating a character counter with spring animations in Motion for React
$
pnpm add motion # then adapt the free source from https://motion.dev/examples/react-characters-remainingnpm deps: motion
Our notes
Character counter that animates as you type and warns near the limit — input feedback done right. Free example (motion is MIT); copy and adapt the source from the example page.
- Source
- Motion (motion.dev)
- Kind
- transition
- Categories
- transition, stats
- Use as
- recipe — technique you apply to your own markup
- Applies to
- inputform
- Motion
- on state · subtle · motion · low cost
- Tags
- motion, useAnimate
- Licence
- motion / motion/react / motion-v are MIT. Motion+ (premium components, example source, AI Kit pro tools) is paid — one-time Personal licence or per-seat Business.
- Live demo
- motion.dev
- Docs
- motion.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.
- Toggletransitions/toggleOn/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.