Typewriter text

Mood track «Reminiscing» · Kevin MacLeod incompetech.com · licensed under Creative Commons BY 4.0
Example image of the style Typewriter text
Preview built in HTML and CSS in this style

Texto máquina de escribir · Typewriter text · Typing effect · Typed text · Effetto digitazione

Words appear one letter at a time as if someone were typing them right now, then get deleted to make room for the next phrase. A blinking caret makes it feel alive and "human".

Era
1998 – today
Use
Mainstream
Domain
Web / UIMotion
Mood
nostalgiccalmclean
Explore

Live demo

View code
<main>
  <p class="k">Officina Carta · studio di scrittura</p>
  <h1 aria-label="Scriviamo storie, slogan, manifesti">Scriviamo<br><em class="tw">storie</em><b class="car"></b></h1>
  <p class="sub">&gt; bozza_03.txt — salvata ora</p>
</main>
<script>
if(matchMedia('(prefers-reduced-motion: no-preference)').matches){
  const el=document.querySelector('.tw'),w=['storie','slogan','manifesti','lettere d’amore'];let i=0,j=w[0].length,del=true;
  const step=()=>{const s=w[i%w.length];
    if(del){j--;el.textContent=s.slice(0,j);if(j<=0){del=false;i++;}setTimeout(step,j<=0?350:38);}
    else{const t=w[i%w.length];j++;el.textContent=t.slice(0,j);if(j>=t.length){del=true;setTimeout(step,1700);}else setTimeout(step,70+Math.random()*90);}
  };setTimeout(step,1500);
}
</script>
body{margin:0;height:100vh;display:grid;place-items:center;background:#F6F1E7;background-image:repeating-linear-gradient(#0000 0 27px,#E7DFCF 27px 28px);color:#1E1B18;font-family:'IBM Plex Mono',monospace}
main{padding:0 7vw;max-width:92vw;box-sizing:border-box}
.k{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#8C8478;margin:0 0 10px}
h1{font-family:Fraunces,serif;font-weight:400;font-size:clamp(32px,8vw,56px);line-height:1.05;margin:0;min-height:2.1em}
.tw{font-style:italic;font-weight:700;color:#D9432B}
.car{display:inline-block;width:3px;height:.9em;margin-left:4px;vertical-align:-.08em;background:#D9432B}
.sub{font-size:13px;color:#8C8478;margin:18px 0 0}
@media (prefers-reduced-motion:no-preference){
  .car{animation:bl 1s steps(1) infinite}
  @keyframes bl{50%{opacity:0}}
}

Characteristics

  • Characters added one at a time with a slightly uneven rhythm
  • Blinking bar or block caret
  • Deleting faster than typing
  • Fixed sentence start with a rotating final word
  • Full pause before starting again

Palette

Click a swatch to copy it

Typography

Headings · Fraunces Typewriter text

Body · IBM Plex Mono Words appear one letter at a time as if someone were typing them right now, then get deleted to make room for the next phrase. A blinking caret makes it feel alive and "human".

Motion

Easing
steps / lineare per carattere
Typical duration
50–120 ms per carattere in scrittura, 30–50 ms in cancellazione, pausa 1.2–2 s
Techniques
setTimeout ricorsivo, Typed.js, CSS steps() su width in ch, TypeIt, aria-label con le frasi complete

Accessibility (reduced motion)

Show the full phrase with no typing and no blinking caret; at most swap words with a slow fade.

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: Typewriter text (Texto máquina de escribir).
Words appear one letter at a time as if someone were typing them right now, then get deleted to make room for the next phrase. A blinking caret makes it feel alive and "human".
Characteristics: Characters added one at a time with a slightly uneven rhythm, Blinking bar or block caret, Deleting faster than typing, Fixed sentence start with a rotating final word, Full pause before starting again.
Palette: #F6F1E7, #1E1B18, #D9432B, #8C8478, #E7DFCF.
Typography: headings in Fraunces, body text in IBM Plex Mono (Google Fonts or equivalents).
Mood: nostalgic, calm, clean.
Motion: easing steps / lineare per carattere, typical duration 50–120 ms per carattere in scrittura, 30–50 ms in cancellazione, pausa 1.2–2 s; techniques: setTimeout ricorsivo, Typed.js, CSS steps() su width in ch, TypeIt, aria-label con le frasi complete.
With prefers-reduced-motion: Show the full phrase with no typing and no blinking caret; at most swap words with a slow fade.
References: Typed.js, TypeIt, hero delle landing page di startup anni 2010, tradizione della macchina da scrivere nei titoli di film.

Relations

Derives from: Terminal UITerminal UISimilar to: Karaoke captionsKaraoke captionsSimilar to: Text ScrambleText ScrambleSimilar to: Split Text RevealSplit Text RevealContrasts with: Text fill on scrollText fill on scrollTypewriter text
Derives fromSimilar toContrasts withSee in the graph →

References

  • Typed.js
  • TypeIt
  • hero delle landing page di startup anni 2010
  • tradizione della macchina da scrivere nei titoli di film