13 lines
357 B
JavaScript
13 lines
357 B
JavaScript
const texts = document.querySelectorAll('.textWelcomeScreen');
|
|
|
|
texts.forEach(text => {
|
|
const characters = text.textContent.split('');
|
|
text.textContent = '';
|
|
|
|
characters.forEach((char, index) => {
|
|
const span = document.createElement('span');
|
|
span.textContent = char;
|
|
span.style.animationDelay = `${index * 0.1}s`;
|
|
text.appendChild(span);
|
|
});
|
|
}); |