What a Continuous Emitter Follows.
"pointer"
{ x, y }
fire({ origin })
Konfeti.emit({ rate: 30, follow: document.querySelector("#rocket")! });Konfeti.emit({ rate: 60, follow: "pointer" });Konfeti.emit({ rate: 20, follow: { x: [0, 1], y: 0 } }); // along the top edge Copy
Konfeti.emit({ rate: 30, follow: document.querySelector("#rocket")! });Konfeti.emit({ rate: 60, follow: "pointer" });Konfeti.emit({ rate: 20, follow: { x: [0, 1], y: 0 } }); // along the top edge
What a Continuous Emitter Follows.
"pointer": the mouse / finger position — nothing is emitted until the pointer first moves over the page;{ x, y }(0–1 of the canvas, ranges allowed), likefire({ origin }).