Skip to content
animorio
IT
All components

Whoami terminal

Code, Text, HoverGSAP, CSS onlyMediumCompressed weight: Demo 6.1 KBGSAP 28 KBFreeDownload the zip

The terminal on the home page of Noor Haddad, a made-up software engineer: a clean dark window with its bar and three flat circles, introducing itself. It types whoami and answers with the name and the job, ls projects with the three projects in columns, their languages and stars, cat stack.txt with the languages lighting up one by one, and contact with the email and a Copied pill. Then clear, and again. Click it and type for real: help, whoami, projects, stack, contact, clear, the arrows recall commands and a wrong command turns the prompt sign red. On black, with a single mint accent.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Whoami terminal" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Whoami terminal</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/jetbrains-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage">
    <!-- the terminal on the home page of Noor Haddad, a made-up software engineer.
         It introduces itself: whoami, ls projects, cat stack.txt, contact.
         Click it and type: help, whoami, projects, stack, contact, clear; arrows recall commands -->
    <section class="term" data-term tabindex="0" aria-label="Terminal. Type help and press Enter.">
      <header class="term__bar">
        <span class="lights" aria-hidden="true"><i></i><i></i><i></i></span>
        <span class="term__title">noor@studio <span class="dim">— zsh — 80×24</span></span>
        <span class="term__badge" data-badge aria-hidden="true">
          <span class="term__badge-in" data-badge-in>
            <svg viewBox="0 0 12 12" class="term__badge-i"><path d="M2.6 6.3 4.9 8.5 9.4 3.7" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" pathLength="1"/></svg>
            <span class="term__badge-t" data-badge-t>auto</span>
          </span>
        </span>
      </header>
      <div class="term__screen" data-screen>
        <div class="term__out" data-out aria-live="polite"></div>
        <p class="line line--prompt" data-live-line>
          <span class="prompt" data-prompt><span class="who">noor@studio</span> <span class="path">~</span> <span class="sign">%</span></span>
          <span class="typed" data-typed></span><span class="caret" data-caret aria-hidden="true"></span>
        </p>
      </div>
    </section>
    <p class="hint" aria-hidden="true">Click and type <kbd>help</kbd></p>
  </main>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

23 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “Whoami terminal” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

In the middle, on black, the terminal window with its bar on top, three flat grey circles and «noor@studio — zsh — 80×24», and on the right a small pill saying auto or you. The block caret breathes slowly. The terminal types whoami with a human rhythm and the answer arrives line by line, the name in light and the job in grey; then ls projects, with the three projects lined up in columns and the language and stars of each below; cat stack.txt, with the languages lighting up green one by one and fading back to light; contact, with the email in green and, bottom right, the Copied pill popping out with its tick. Then clear, and the round starts again. Click the window and type for real: the pill says you, commands answer, the arrows recall the ones already given, Esc clears the line and a command that does not exist answers «command not found» with the prompt sign red. After a few quiet seconds the terminal goes back to introducing itself.

How it works

The round is a timeline

Each letter typed by itself is a call() on the timeline, with a small fixed offset taken from a sine: the rhythm feels human but is the same every time, and the timeline can be paused, rewound and scrubbed frame by frame.

Answers line by line

Each command adds the echo line with its prompt and then the answer lines, each from zero opacity and four pixels lower, a tenth of a second apart.

The screen that scrolls down

The screen has overflow hidden and GSAP animates its scrollTop to the bottom after every answer: the last line always stays in view, even when the window changes height.

The real keyboard

A click gives the window focus; Enter runs, Backspace deletes, the arrows walk the command history. The first key stops the automatic round, and a delayedCall starts it again after a few quiet seconds.

Centred pills

The Copied pill and the state pill are grids with place-items center and their content in an element of its own: the changing text never moves the centre.

Values to change

NameFileDefaultWhat it changes
TYPE_SPEEDscript.js0.085Seconds per typed character, on average.
LINE_DELAYscript.js0.11Seconds between one answer line and the next.
PAUSEscript.js1.1Seconds the terminal waits after an answer before the next command.
BREATHscript.js0.85Seconds of the caret breathing in, and again out.
AUTO_PAUSEscript.js6Seconds of quiet before the terminal goes back to introducing itself.
NAMEscript.js"Noor Haddad"The name whoami answers with.

Try them in the Playground

When to use it

On the home page of a developer’s portfolio, instead of the usual intro: in a few seconds it says who you are, what you built, what you work with and how to reach you, and whoever wants can try it from the keyboard.

On phones

Everything is in em and the size follows both the width and the height of the window, so the window fits the short phone box; long lines wrap and the screen scrolls down by itself. A tap gives the window focus for the keyboard.

With reduced motion

No typing by itself, no lines rising: the answers to whoami, ls projects and cat stack.txt are already in place, the caret is still and commands answer at once; the Copied pill fades in.

Pitfalls

  • No setTimeout for the typing: with a timeline’s call()s the round can be paused and scrubbed, and the preview bench can drive it.
  • Animate scrollTop on the screen, not the page: the demo page never scrolls.
  • The typed text has white-space pre: without it, trailing spaces vanish and the caret jumps back.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, JetBrains Mono (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 6.1 KB; the libraries: GSAP 28 KB.

Testing

Tested on 29 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All components