Skip to content
tastebase

tastebase

Sign in

Your agent gets your look, hearts and dislikes in every project. Folders follow you to every device.

We keep the name, avatar and email your provider shares. Nothing else.

canvas-confetti

free

Fire performant confetti from any point on the page with one function call.

by Kiril Vatev GitHub npm
visit
canvas-confetti website

Try these

Sonner

Opinionated toast component with stacking, swipe to dismiss and promise toasts; ports for Vue, Svelte, Solid and Angular.

Lenis

Smooth, inertia-based wheel scrolling that keeps native scroll position, sticky and anchors working.

Glisse

A faithful web implementation of Apple's Liquid Glass: refracting buttons, switches, tab bars and menus.

Liquid Glass React

A single <LiquidGlass> wrapper that adds refraction, chromatic aberration and elastic hover to any content.

For your agent

Install
npm i canvas-confetti && npm i -D @types/canvas-confetti
Use it for
  • a genuine milestone: first project created, payment completed, course finished
  • a celebration in onboarding or a game: a streak hit, a level up, a goal reached
Skip it when
  • routine actions (saving, sending a message): celebration loses meaning fast
  • corporate, luxury, brutalist or minimal products where it clashes with the tone
  • error-adjacent flows or anything serious (finance transfers, medical, deletion)
What's inside16 free
  • confetti()
  • confetti.create
  • confetti.reset
  • confetti.shapeFromPath
  • confetti.shapeFromText
  • Reduced motion (disableForReducedMotion)
  • Basic Cannon
  • Random Direction
  • Realistic Look
  • Fireworks
  • Stars
  • Snow
  • School Pride
  • Custom Shapes
  • Emoji
  • Custom Canvas
Facts
Frameworks
vanilla, react, vue, svelte, solid, angular
Styling
unstyled
Weight
small
Accessibility
ok
Maturity
established
License
ISC
Price
Free
Pairs with
import confetti from 'canvas-confetti'

confetti({ particleCount: 80, spread: 70, origin: { y: 0.7 }, disableForReducedMotion: true })
Visit