design-infraGitHub
Report a problem or share feedback← Catalog

Color picker

free

motion/color-picker

An example of creating a circular color picker with dots that react to cursor movement with soft springs using Motion for React.

hover · cursor — subtlerecipeRefinedTrustworthyWarm
$pnpm add motion # then adapt the free source from https://motion.dev/examples/react-color-picker

npm deps: motion

Color picker preview
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