Confetti on a page that keeps working
This is plain HTML. The confetti is one spryte canvas laid over it with pointer-events: none, so you can still select this text, type in the box and press every button while pieces fall through it.
One draw callOn WebGL2 every piece goes through a single
sprites() call with its own angle, scale and colour. The count is in the header.Sharp on any screenThe canvas renders at the device pixel ratio, so pieces stay crisp on phones.
SmallAll of this page's JavaScript, spryte included, is about 15 kB compressed. Click anywhere for a burst where you click.