Skip to content

Commit 914c659

Browse files
t3dotggclaude
andcommitted
feat(web): make the star confetti burst explosive
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 30bf0f6 commit 914c659

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎apps/web/src/components/GitHubStarPrompt.tsx‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,17 @@ function showStarPrompt(environmentId: EnvironmentId) {
6868
});
6969
}
7070

71-
// One burst from the toast corner. The library loads only here, and its canvas stops when done.
71+
// One burst out of the toast. The library loads only here, and its canvas stops when done.
7272
function celebrate() {
7373
void import("canvas-confetti")
7474
.then(({ default: confetti }) =>
7575
confetti({
76-
particleCount: 120,
77-
spread: 70,
78-
origin: { x: 0.85, y: 0.15 },
76+
particleCount: 160,
77+
spread: 360,
78+
startVelocity: 38,
79+
gravity: 1.6,
80+
ticks: 140,
81+
origin: { x: 0.83, y: 0.15 },
7982
disableForReducedMotion: true,
8083
}),
8184
)

0 commit comments

Comments
 (0)