
A laddoo arcs into the cart, the badge ticks up and the button confirms. A free, live ecommerce component.
Updated November 2026
Use it on product pages. The laddoo shows where the item went, and the badge confirms the new count. Your own code still has to add the item, so fire the animation once the action has worked.
npm i exodeui.ExodeUICanvas. Taps and hovers work out of the box, and fireTrigger plays it from your code.import { ExodeUICanvas, useExodeUI } from 'exodeui';
export function DiwaliAddToCart() {
const { setEngine, fireTrigger } = useExodeUI();
return (
<>
<div style={{ width: 400, height: 300 }}>
<ExodeUICanvas
src="/ui-gallery/files/diwali-add-to-cart.bexode"
autoPlay
onReady={setEngine}
style={{ width: '100%', height: '100%' }}
/>
</div>
{/* Optional: taps on the canvas already work */}
<button onClick={() => fireTrigger('in_add')}>Play from code</button>
</>
);
}