Transition

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-transition

About this component

A page transition picker that demonstrates itself on a little phone: the list and the detail page take turns on screen with the chosen transition, fade, slide or zoom.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers4

  • Click
  • State change
  • Continuous
  • Loop

Techniques2

  • Keyframes
  • Transform only

Accessibility

Keyboard and screen readers

A role="radiogroup" with an aria-label around native radio inputs sharing one name, so the arrow keys move the choice and Tab enters the group once; :focus-visible on the input outlines its option.

Reduced motion

The loop stops on the list page.

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

More radios

See all
Robot vacuumGet code
BarbellGet code
Tilt-turn windowGet code
CartonGet code