design-infraGitHub
Report a problem or share feedback← Catalog

useTime

free

motion/use-time

An example of using the useTime hook to animate an element at a constant speed.

enter — mediumrecipeTrustworthyRefinedPlayful
$pnpm add motion # then adapt the free source from https://motion.dev/examples/react-use-time

npm deps: motion

useTime preview
Source
Motion (motion.dev)
Kind
transition
Categories
transition
Use as
recipe — technique you apply to your own markup
Motion
on enter · medium · motion · medium cost
Tags
motion, useTransform
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