You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
424 B
24 lines
424 B
3 years ago
|
var colors = ["#ff55c8", "#00d4ff", "#4f4fff", "#FFF"];
|
||
|
|
||
|
function frame() {
|
||
|
confetti({
|
||
|
particleCount: 4,
|
||
|
angle: 60,
|
||
|
spread: 55,
|
||
|
origin: { x: 0, y: 1 },
|
||
|
colors: colors,
|
||
|
});
|
||
|
confetti({
|
||
|
particleCount: 4,
|
||
|
angle: 120,
|
||
|
spread: 55,
|
||
|
origin: { x: 1, y: 1 },
|
||
|
colors: colors,
|
||
|
});
|
||
|
|
||
|
if (Date.now() < Date.now() + 15000) {
|
||
|
requestAnimationFrame(frame);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
window.onload = frame();
|