From 68311bfa3bf5fc64b74749cc93fd1e11f1f6fe06 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 8 Jun 2024 21:13:50 -0500 Subject: [PATCH] fix: normalize animation time --- scripts/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/index.js b/scripts/index.js index 8534078..68c7e9b 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -41,7 +41,7 @@ function refresh(e) { function removeChar() { if (i++ < topicLength) { terminalPrompt.textContent = terminalPrompt.textContent.slice(0, -1); - setTimeout(removeChar, 1000 / topicLength); + setTimeout(removeChar, 500 / topicLength); } else { i = 0; clearing = false; @@ -77,7 +77,7 @@ function typechars(e) { function typechar() { if (i < terminalText.length) { terminalPrompt.innerHTML += terminalText.charAt(i++); - setTimeout(typechar, 1000 / terminalText.length); + setTimeout(typechar, 500 / terminalText.length); } else { renderPosts(topic); }