$w.onReady(function () {
const TEXT = "COLOR OF FASHION SEASON IV";
let typewrittenText = "";
//array
//timeout
const textArray = Array.from (TEXT);
textArray.forEach((char, index) => {
setTimeout(() => {
typewrittenText += char + "|";
$w("#typewritter").text = typewrittenText.substring(0, typewrittenText.length - 1);
}, 100 * index);
}}
console.log(textArray);
});
top of page
bottom of page