Animated Checkbox and Radio: Forms | HorizonX

Code

Animated Checkbox and Radio

Native checkboxes and radio buttons where the tick draws itself and the dot scales in.

Animated Checkbox and Radio, image 3
Animated Checkbox and Radio, image 2
Animated Checkbox and Radio, image 3
  • Instant access Included with every membership
  • Full source code Download and run locally
  • Commercial license With a membership, for client work

Overview

The demo is a notification settings form: topic checkboxes with a Select all box that shows a mixed state, and a radio group for how often messages arrive. They stay native inputs, so labels, forms and arrow keys work as usual. Motion: select (box fills, tick draws, dot scales 0 to 1): 180 ms, cubic-bezier(0.2, 0.8, 0.2, 1); clear (tick erases, dot scales to 0): 120 ms, cubic-bezier(0.4, 0, 1, 1). The shared easing curves live in one theme file, and each duration sits right next to its transition. With reduced motion turned on, the component changes state without movement and stays fully usable. Built with React 19 and TypeScript and Tailwind CSS 4, animated with plain CSS transitions (no animation library), with keyboard and screen reader behavior written into the component. Light and dark themes come from CSS variables you can edit. Included: the component source, light and dark theme variables, a runnable demo page, and setup guides for people and for AI coding agents.

Highlights

  • Production-ready, documented source
  • Clean, componentized architecture
  • Drops into your stack with minimal setup

Preview

What's included

  • Full source code
  • README & setup guide
  • Component documentation
  • Commercial license with a membership

Frequently asked questions

  • The full source code for this asset, ready to download and integrate into your project.

  • Unzip the download and follow its README. Coded products run through a local web server or your project's dev server, started with the command the README gives, so double-clicking an index.html file can show a blank page. The Specs list on this page names the format and what it's built for.

  • It's included with a HorizonX membership. Download it instantly, no separate purchase.

  • Yes, with a HorizonX membership. Members get a commercial license: use and adapt these files in personal, client and commercial projects. If your plan ends, projects you already built keep their license, but the files can't be used to start new ones.