Gustavo Luigi 2024-01-11 17:18:50 -03:00
parent 1409c76753
commit ab15a6414c
1 changed files with 3 additions and 1 deletions

View File

@ -267,6 +267,7 @@
entries.forEach(entry => { entries.forEach(entry => {
if (entry.isIntersecting) { if (entry.isIntersecting) {
nameField.addEventListener("focus", () => { nameField.addEventListener("focus", () => {
nameField.placeholder = "";
setTimeout(() => { setTimeout(() => {
let typed = new Typed('#name', { let typed = new Typed('#name', {
strings: ['Max Mustermann'], strings: ['Max Mustermann'],
@ -274,7 +275,8 @@
backSpeed: 25, backSpeed: 25,
showCursor: false, showCursor: false,
startDelay: 500, startDelay: 500,
loop: false loop: false,
attr: 'placeholder'
}); });
}, 1000); }, 1000);
}); });