Balloons

Balloon
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-balloons

About this component

Four party balloons on strings. The one you pick is let out on its string and floats up above the rest, bobbing; the last one is pulled back down.

Triggers

  • Click
  • State change
  • Hover
  • Loop
  • Spring

Techniques

  • Keyframes
  • Radial gradient
  • CSS variables
  • @property

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Balloon"), each in a <label> and named by aria-label (Red, Yellow, Blue, Purple); the balloons are aria-hidden. :focus-visible outlines the balloon.

Reduced motion

The rise is instant and the bobbing is switched off.

Use it in anything you build, commercial and client work included. Licence

More radios

See all
Output
BauhausGet code
Drawing scale
BlueprintGet code
Aspect ratio
BoundsGet code
Input
BrassGet code