Outline to Fill.
Crossfade outlined letterforms into solid typography.
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;-webkit-text-stroke:1px currentColor;animation:effect 2s infinite alternate;}
@keyframes effect{from{color:transparent;-webkit-text-stroke-color:#dbff55}to{color:#dbff55}}
@media(prefers-reduced-motion:reduce){.text,.text *{animation:none!important}}// Crossfade outlined letterforms into solid typography.