@nadia-beeley
What do you mean, insert each character individually?
The example works fine from J. D.
I changed a small part since J. D.'s example stops when there is a space.
$w.onReady(function () {
});
export function btnDownload_click(event) {
const intervalInMilliseconds = 300; // interval between letters
const text = 'Some text some text'; //the full text
let count = 0
let typingInterval;
$w.onReady(() => {
$w('#text1').text = '';
typingInterval = setInterval(typeItUp, intervalInMilliseconds);
})
function typeItUp() {
if ($w('#text1').text.length >= text.length) {
console.log("done")
return clearInterval(typingInterval); //to stop when the entire text is displayed
}
count ++
$w('#text1').text = text.substring(0, count); //here you add one character every time.
}
}