Typewriter Text.
Reveal text one character at a time with stepped clipping.
View code
<div class="text" aria-label="Web Tattva">WEBTATTVA</div>:root { color-scheme: dark; font: 15px system-ui, sans-serif; color: #dbff55; }
* { box-sizing: border-box; }
body { margin: 0; height: 100dvh; display: grid; place-items: center; overflow: hidden; background: transparent; }
.tile { display: grid; place-items: center; width: 68px; aspect-ratio: 1; border-radius: 18px; background: currentColor; }
.tile { background: #dbff55; color: #202415; font-size: 30px; }
canvas { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; }
button { font: inherit; color: #f3f1e9; background: #191919; border: 1px solid #ffffff66; padding: 8px 14px; border-radius: 24px; cursor: pointer; }
:focus-visible { outline: 2px solid #dbff55; outline-offset: -3px; }
.notice { max-width: 34ch; padding: 16px; color: #fff; }
@media (prefers-reduced-motion: reduce) { .sprite { animation-play-state: paused; } }
.text{font:800 clamp(22px,8vw,60px)/1.2 monospace;width:0;overflow:hidden;white-space:nowrap;border-right:2px solid;animation:effect 3s steps(9) infinite alternate;}
@keyframes effect{to{width:9ch}}
@media(prefers-reduced-motion:reduce){.text,.text *{animation:none!important}}// Reveal text one character at a time with stepped clipping.