Skip to content

Commit

Permalink
feat: improve confetti
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Mar 1, 2024
1 parent 39d9a3f commit b2cbda0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ const util = (() => {
confetti({
particleCount: 1,
startVelocity: 0,
ticks: Math.max(45, 90 * (timeLeft / duration)),
ticks: Math.max(50, 100 * (timeLeft / duration)),
origin: {
x: Math.random(),
y: Math.random() - (timeLeft / duration),
y: Math.abs(Math.random() - (timeLeft / duration)),
},
zIndex: 1057,
colors: [color],
Expand Down

0 comments on commit b2cbda0

Please sign in to comment.