JSFiddle - React, Tailwind, and code Playground
by Avi Algaly
JavaScript
let space = " ";
for (let i = 0; i <= 500; i += 3) {
let num = Math.sin(i) * 15 + 17;
let span = "";
setTimeout(function() {
for (let j = 0; j < num; j++) {
span += space;
}
console.log(span, "❤");
}, 500);
}