design-infraGitHub
Report a problem or share feedback← Catalog

Add to basket

curatedfree

motion/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.

press · state — expressiverecipeRefinedPlayful
$pnpm add motion # then adapt the free source from https://motion.dev/examples/react-add-to-basket

npm 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.
Add to basket preview
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