Report a problem or share feedback← Catalog
Color picker
freemotion/color-picker
An example of creating a circular color picker with dots that react to cursor movement with soft springs using Motion for React.
$
pnpm add motion # then adapt the free source from https://motion.dev/examples/react-color-pickernpm deps: motion

- Source
- Motion (motion.dev)
- Kind
- transition
- Categories
- transition, input, background
- Use as
- recipe — technique you apply to your own markup
- Applies to
- inputbackground
- Motion
- on hover, cursor · subtle · motion · medium cost
- Tags
- motion, usePointerPosition, useMotionValue, useSpring, useTransform, animate, whileHover, whileTap
- 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 →- Input clear with dissolvetransitions/input-clear-dissolveClearing a text field — search box, filter input, any field with a clear (×) button. The typed text flies down + blurs + fades while a soft per-word streak ignites under each word, and the placeholder falls in from above. Per-frame JS is required: the streak envelope and per-word gradient stack cannot be expressed as static @keyframes.
- Conic gradient pointermotion/conic-gradient-pointerAn example of creating a dynamic conic gradient with motion values and pointer position.
- 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.