Report a problem or share feedback← Catalog
Add to basket
curatedfreemotion/add-to-basket
An example of flying a product into the basket along a curved path with arc() and a spring impact, in Motion for React.
$
pnpm add motion # then adapt the free source from https://motion.dev/examples/react-add-to-basketnpm deps: motion
Our notes
Product flies into the cart along an arc() path with a spring impact — e-commerce delight. Free example (motion is MIT); copy and adapt the source from the example page.
- Source
- Motion (motion.dev)
- Kind
- transition
- Categories
- transition
- Use as
- recipe — technique you apply to your own markup
- Motion
- on press, state · expressive · motion · medium cost
- Tags
- motion, useAnimate, useMotionValue, 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 →- 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.
- Success checktransitions/success-checkSpinner → checkmark morph for completed actions.
- AnimatePresence modesmotion/animate-presence-modesAnimatePresence `mode` (sync / wait / popLayout): how to swap one view for another — tab panels, carousel slides, step wizards — without overlap jank. Free example (motion is MIT); copy and adapt the source from the example page.