confetti

command
v0.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Confetti throws confetti in native UI, as canvas-confetti does on a web page: bursts of squares, circles, stars, hearts and emoji that fly out, slow down, fall, tumble and fade.

go run ./examples/confetti

Pick one of canvas-confetti's demos, or click the stage to throw a burst of your own from the pointer. Each piece is three boxes posed one inside the other (AnimatePose), as canvas-confetti adds up its motions: a burst whose speed decays, along an easing of its own, a steady fall that fades it, and a spin in a plane turned away in 3D (RotationX), which makes it tumble. Poses move in frames that only paint, so hundreds of pieces fly without building the view again.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL