Skip to content
Click to replay
Interaction
Click replay
Category
Commerce
Duration
1.20 s
Frame rate
30 fps
Artboard
32 × 32 px
Lottie size
1.8 kB

Shopping Cart

Animated shopping cart icon

The Shopping Cart animated icon replays on every click in 1.2 s, a good fit for add-to-cart buttons. Click icons typically confirm send, save, refresh, download, add-to-cart and formatting buttons.

Also known asbasketadd to cart

Free under the MIT license · Markdown version · About the files

Use it

npm install react-useanimations
import UseAnimations from 'react-useanimations';
import shoppingCart from 'react-useanimations/lib/shoppingCart';

<UseAnimations animation={shoppingCart} size={32} />

Static SVG

Shopping Cart icon, shopping-cart state
shopping-cart.svg

Questions about the Shopping Cart icon

›What happens if Shopping Cart is clicked again before it finishes?

No queue: every click restarts the 1.2 s run from the first frame. With reduced motion preferred, clicks still reach your onClick but the icon stays still.

›How do I make Shopping Cart an accessible button?

Put its events on a real button with the render prop: render={(events, icon) => <button aria-label="Shopping Cart" {...events}><span {...icon} /></button>}. The animation itself stays aria-hidden.

›Can Shopping Cart play on hover instead?

Yes: pass interaction="hover-replay". It then plays once on mouseenter unless reduced motion is preferred. Leaving does not stop it; entering during playback does not restart it.