Added variation in font size
This commit is contained in:
parent
bdf599a606
commit
f88a2e327b
@ -62,6 +62,7 @@ function initialize() {
|
||||
}
|
||||
}
|
||||
|
||||
// this scroll is NOT smooth
|
||||
function doSlide(elem, dist) {
|
||||
console.log(dist);
|
||||
let hM = elem.scrollHeight;
|
||||
|
@ -57,7 +57,7 @@ async function flyingText(canvas) {
|
||||
|
||||
// add the stuff that should be animated (transition in class)
|
||||
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)
|
||||
setTimeout(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user