Here's an animated cart SVG with meaningful micro-interactions — a wiggle on hover, items "dropping in" to the cart, and a bounce on the wheels:
Here's what's animated, and why each choice is meaningful:
- Hover wiggle — the cart body rocks side-to-side, as if nudged, giving it weight and personality
- Wheel bounce — each wheel independently bounces with a staggered delay, reinforcing the physical feel
- Item drop — clicking "Add item" fires three small colored boxes that fall and shrink into the cart, mimicking something being tossed in
- Cart shake — after items land, the cart shakes to acknowledge the impact
- Badge pop — a counter badge scales in with a spring overshoot, and pulses on each addition
The red accent on the dividers and wheel hubs ties the SVG's existing #E73B37 color into the interactive elements.
Demo:
See the Pen Animated Cart by Puneet Sharma (@webdevpuneet) on CodePen.
Turn your Figma design into a fast, production-ready frontend — in 2–5 days. Hire me on Upwork.
Blog