Text Scramble
Testo che si decodifica · Texto que se descifra · Decode effect
A headline's letters shuffle through random glyphs before "decoding" into the right word, or appear one at a time as if typed. It evokes terminals, hackers and AI at work.
- Era
- 2014 – today
- Use
- Mainstream
Live demo
View code
<main>
<p class="tag">// sistema v2.6</p>
<h1 class="scr" aria-label="Segnale ricevuto">SEGNALE OK</h1>
<p class="tw">> connessione stabilita</p>
</main>
<script>
if(matchMedia('(prefers-reduced-motion: no-preference)').matches){
const el=document.querySelector('.scr'),ph=['DECODIFICA','STILE VIBE','SEGNALE OK'],ch='!_/[]{}=+*^?#%$01';let i=0;
const go=()=>{const to=ph[i++%ph.length],from=el.textContent,n=Math.max(from.length,to.length);let f=0;
const q=[...Array(n)].map((_,k)=>({a:from[k]||'',b:to[k]||'',s:Math.random()*18|0,e:(Math.random()*18|0)+18}));
const tick=()=>{let o='',ok=0;q.forEach(c=>{if(f>=c.e){ok++;o+=c.b}else if(f>=c.s){o+='<span>'+ch[Math.random()*ch.length|0]+'</span>'}else o+=c.a});
el.innerHTML=o;f++;ok===n?setTimeout(go,1700):requestAnimationFrame(tick)};tick()};
setTimeout(go,600);
}
</script> body{margin:0;height:100vh;display:grid;place-items:center;background:#0B0F0C;color:#D7FFE4;font-family:'JetBrains Mono',monospace}
main{padding:0 6vw}
.tag{color:#1F6F45;font-size:13px;margin:0 0 10px}
h1{font-weight:800;font-size:clamp(30px,9vw,60px);margin:0;color:#39FF88;text-shadow:0 0 18px #39FF8866;white-space:pre}
h1 span{color:#FFB000}
.tw{font-size:15px;margin:18px 0 0;width:23ch;white-space:nowrap;overflow:hidden;border-right:.6em solid #39FF88}
@media (prefers-reduced-motion:no-preference){
.tw{animation:type 2.6s steps(23) infinite alternate,blink .7s step-end infinite}
@keyframes type{0%,10%{width:0}70%,100%{width:23ch}}
@keyframes blink{50%{border-color:transparent}}
} Characteristics
- Random glyphs resolving letter by letter
- Monospaced font to avoid width jumps
- Blinking caret at the end of the line
- Irregular rhythm to feel "alive"
- Cycling through several phrases
Palette
Click a swatch to copy it
Typography
Headings · JetBrains Mono Text Scramble
Body · JetBrains Mono A headline's letters shuffle through random glyphs before "decoding" into the right word, or appear one at a time as if typed. It evokes terminals, hackers and AI at work.
Motion
- Easing
steps / casuale per carattere- Typical duration
- 600–1500 ms per frase; 30–60 ms per carattere
- Techniques
- requestAnimationFrame, setInterval, CSS steps() su width in ch, GSAP ScrambleTextPlugin, Typed.js, aria-label con il testo finale
Accessibility (reduced motion)
Show the final phrase immediately, at most with a fade. Use aria-label or aria-live so screen readers never read the random glyphs.
Prompt for your agent
Copy and paste into your prompt to have an agent or image generator reproduce this style.
For web pages and UI
Design the web page or interface in this style: Text Scramble (Testo che si decodifica, Texto que se descifra). A headline's letters shuffle through random glyphs before "decoding" into the right word, or appear one at a time as if typed. It evokes terminals, hackers and AI at work. Characteristics: Random glyphs resolving letter by letter, Monospaced font to avoid width jumps, Blinking caret at the end of the line, Irregular rhythm to feel "alive", Cycling through several phrases. Palette: #0B0F0C, #D7FFE4, #39FF88, #1F6F45, #FFB000. Typography: headings in JetBrains Mono, body text in JetBrains Mono (Google Fonts or equivalents). Mood: futuristic, rational, energetic. Motion: easing steps / casuale per carattere, typical duration 600–1500 ms per frase; 30–60 ms per carattere; techniques: requestAnimationFrame, setInterval, CSS steps() su width in ch, GSAP ScrambleTextPlugin, Typed.js, aria-label con il testo finale. With prefers-reduced-motion: Show the final phrase immediately, at most with a fade. Use aria-label or aria-live so screen readers never read the random glyphs. References: Titoli di «The Matrix» (1999), GSAP ScrambleTextPlugin, Typed.js, tabelloni split-flap delle stazioni.
Relations
Derives from
References
- Titoli di «The Matrix» (1999)
- GSAP ScrambleTextPlugin
- Typed.js
- tabelloni split-flap delle stazioni