Skip to content

Commit fae2ba5

Browse files
committed
refactor: remove auto-looping animation and visibility change event listeners from terminal text effect
1 parent 53c6e8d commit fae2ba5

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

index.html

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -404,32 +404,8 @@ <h2>Ready to run real containers?</h2>
404404

405405
timers.push(timer);
406406
});
407-
408-
const lastRevealAt = (lines.length - 1) * stepMs;
409-
const clearAt = lastRevealAt + holdMs;
410-
411-
const clearTimer = setTimeout(() => {
412-
hideAllLines();
413-
414-
const restartTimer = setTimeout(() => {
415-
revealLines();
416-
}, restartPauseMs);
417-
418-
timers.push(restartTimer);
419-
}, clearAt);
420-
421-
timers.push(clearTimer);
422407
}
423408

424-
document.addEventListener("visibilitychange", () => {
425-
if (document.hidden) {
426-
clearTimers();
427-
return;
428-
}
429-
430-
revealLines();
431-
});
432-
433409
revealLines();
434410
})();
435411
</script>

0 commit comments

Comments
 (0)