Skip to content
animorio
IT
Back to the library

Install terminal

TextGSAP, CSS onlyMediumCompressed weight: Demo 6.4 KBGSAP 28 KBFreeDownload the zip

A developer tool’s terminal window, on black: the install command types itself letter by letter with a block cursor, the lines arrive with their checks and times, a bar made of characters fills up, a starter is picked with the arrow keys and a box says «Ready in 3.2s». The button at the top really copies the command and turns into «Copied».

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>
<!--
  "Install 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>The terminal installing the package</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">
    <!-- a developer tool's install, told by its terminal: the command types itself, the steps arrive with their
         checks and times, a starter is picked with the arrow keys, and a box says it is ready -->
    <section class="term" data-term aria-label="Terminal: installing kitewright">
      <header class="term__bar">
        <span class="term__keys" aria-hidden="true"><i></i><i></i><i></i></span>
        <span class="term__title" data-title>~/acme-web</span>
        <button class="term__copy" type="button" data-copy aria-label="Copy the install command">
          <svg class="term__icon term__icon--copy" viewBox="0 0 20 20" aria-hidden="true"><rect x="7" y="7" width="9" height="9" rx="2"></rect><path d="M13 4.5H6.2A1.7 1.7 0 0 0 4.5 6.2V13"></path></svg>
          <svg class="term__icon term__icon--done" viewBox="0 0 20 20" aria-hidden="true"><path data-copy-tick d="M5.6 10.4 8.6 13.3 14.6 7"></path></svg>
          <span class="term__label" data-copy-label>Copy</span>
        </button>
      </header>
      <div class="term__body" data-body>
        <div class="term__lines" data-lines aria-live="polite"></div>
      </div>
      <svg class="pointer" data-pointer viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.5 19 12l-6.4 1.6L9.2 20 5 3.5Z"></path></svg>
    </section>
  </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.

17 values to change

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 “Install 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

On an almost black background, with a faint mint light behind, sits a terminal window with rounded corners, a thin border and a wide shadow. At the top is the bar with three grey keys shaped like short dashes, the folder name and the Copy button with its icon. In the prompt the command npx kitewright init types itself letter by letter, with a blinking block cursor and a small hesitation halfway, like a real hand. Then the lines arrive: the packages to install, the Ok to proceed question with the y typed a moment later, a bar made of blocks filling in bursts with the percentage and the package count, three lines with a drawn check and the time in grey on the right. A question asks for the starter: the arrow keys move the choice to Docs site and then to Dashboard, and Enter folds the list into a single line. Finally a box edged in mint lands with a hair of overshoot and its check draws itself: Ready in 3.2s, with the next command below. A drawn pointer presses Copy: the button squeezes, the icon turns into a check and the label says Copied. When the log no longer fits, the old lines rise and fade at the top; at the end it all clears and starts again.

How it works

A log that scrolls itself

Each line is a div added by the timeline with a small entrance. After each line the overflow from the window is measured and GSAP lifts the log by that much with power3.out; a gradient mask at the top fades the oldest lines.

The command that types itself

An object with a number goes from 0 to the length of the command in two stretches, with a pause halfway; on each update the command text is cut to that number. The cursor is a block span blinking with a steps(1) tween.

The bar made of characters

The bar is a string of full and shaded blocks rebuilt on every update of a tween from 0 to 1 with power1.inOut, together with the percentage and the package count: the characters come from String.fromCharCode, never typed by hand.

Picking with the arrow keys

The list of starters is redrawn at each step with the chevron on the chosen entry, sliding in from the left; with Enter the list collapses in height and the question takes the answer beside it, as in real CLIs.

The button that copies

Copy uses navigator.clipboard inside a try, so it works where it is missing too; it squeezes, the icon fades into a check that draws itself with stroke-dashoffset and after almost two seconds it goes back.

Values to change

NameFileDefaultWhat it changes
TOOLscript.js'kitewright'The name of the invented tool, in the command and the lines.
PROJECTscript.js'acme-web'The project folder, in the prompt and the final command.
TYPE_SPEEDscript.js22How many letters per second the command types.
PACKAGESscript.js236How many packages the bar installs.
READY_TIMEscript.js3.2The seconds the final box says.
ACCENTscript.js'#6ee7b7'The colour of the checks, the prompt, the bar and the box.
LOOP_PAUSEscript.js2.2The seconds of pause once the install is done, before starting again.

Try them in the Playground

When to use it

For the page of a developer tool, a library or an SDK: in the hero or next to «Get started», it shows in a few seconds how easy it is to install, with the command ready to copy.

On phones

The same animation with adapted sizes: the window takes the width of the box, the characters are also sized on the screen height, the bar title moves to the left and the log shows one more line. A tap on the Copy button does what the click does.

With reduced motion

No typing and no arriving lines: the terminal shows the finished install straight away, with the Ready box and a still cursor; the Copy button works.

Pitfalls

  • The lines are born inside the timeline with call: tweens on those elements must be created inside the call itself, because when the timeline is built the elements do not exist yet.
  • The bar blocks and the middle dot come from String.fromCharCode: typed by hand with the backslash-u sequence they can turn into the wrong characters.
  • The three window keys are grey dashes, not three coloured dots: it is a rule of the site.
  • The cursor blinks with a GSAP tween and not a CSS animation, so the preview bench controls it along with the rest.

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.4 KB; the libraries: GSAP 28 KB.

Testing

Tested on 25 October 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 animations