|
|
@ -57,7 +57,7 @@ async function flyingText(canvas) {
|
|
|
|
|
|
|
|
|
|
|
|
// add the stuff that should be animated (transition in class)
|
|
|
|
// add the stuff that should be animated (transition in class)
|
|
|
|
curr.style.transform = `translate(${x}px, ${y}px)`;
|
|
|
|
curr.style.transform = `translate(${x}px, ${y}px)`;
|
|
|
|
curr.style.fontSize = `2.8vw`;
|
|
|
|
curr.style.fontSize = `${Math.random() + Math.random() + 1.0}vw`;
|
|
|
|
|
|
|
|
|
|
|
|
// wait to remove it (async)
|
|
|
|
// wait to remove it (async)
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|