Report a problem or share feedback← Catalog
Spinning 3D cube
freemotion/use-animation-frame
An example of using Motion for React's useAnimationFrame hook to animate a 3D cube.
$
pnpm add motion # then adapt the free source from https://motion.dev/examples/react-use-animation-framenpm deps: motion

- Source
- Motion (motion.dev)
- Kind
- transition
- Categories
- transition
- Use as
- recipe — technique you apply to your own markup
- Motion
- on loop · expressive · motion · medium cost
- Tags
- motion
- 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 →- Motion presetsoc/motion-presetsdesign-infra's motion languages (still / quiet / lively / cinematic) as motion/react transitions, springs and variants (fadeUp, scaleIn, stagger, press, lift). Set PROJECT_MOTION to your DESIGN.md `motion:` so hand-written animations match the system.
- Loading: Pulse dotsmotion/loading-three-dots-pulseMinimal three-dot pulse loader (variants + repeat). Free example (motion is MIT); copy and adapt the source from the example page.
- Reasoning streamtransitions/reasoning-streamCollapsible reasoning stream motion.