
Word in fanned sheets
3D, Text, Hover
The opening of an invented keyboard shop: under the headline sits a compact mechanical keyboard, tilted back in perspective, and the headline types itself while the right keys travel down, spring back up and leave an orange glow underneath. On hover the keys lift slightly, and you can type by hand, on your real keyboard or by tapping the keys.
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>
<!--
"Mechanical keyboard" 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 mechanical keyboard that types the headline</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage">
<!-- the opening of a keyboard shop: the headline types itself on the keyboard below, key by key -->
<section class="hero" data-hero aria-label="Keymoor, mechanical keyboards">
<p class="hero__brand"><svg viewBox="0 0 20 20" aria-hidden="true"><rect x="2.5" y="5.5" width="15" height="9" rx="2.4"></rect><path d="M6 8.6h1.6M9.2 8.6h1.6M12.4 8.6h1.6M7.2 11.4h5.6"></path></svg><span>Keymoor</span></p>
<h1 class="hero__title" aria-live="polite"><span class="hero__text" data-text></span><span class="hero__caret" data-caret aria-hidden="true"></span></h1>
<p class="hero__sub" data-sub>Hot-swappable 65% boards, switches lubed by hand.</p>
<div class="hero__cta">
<a class="hero__btn" href="#" data-btn>Shop keyboards</a>
<span class="hero__note">Ships in 48h</span>
</div>
<div class="desk" data-desk>
<div class="board" data-board aria-hidden="true">
<div class="board__plate" data-plate></div>
</div>
<div class="board__shadow" aria-hidden="true"></div>
</div>
<p class="hero__hint" data-hint>Type anything</p>
</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>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.
22 values to change
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 “Mechanical keyboard” from Animorio and fit it into my siteThe layout is a list of rows in key units (13 wide): the script makes one div per key, places it in pixels worked out from the width and height of the window and redoes it on resize. The whole plate lives in an element tilted with rotateX inside a container with perspective.
Each key has two CSS variables, --p for the press and --h for hover: the CSS uses them to move the keycap and to shorten the side made of box-shadow, so GSAP only animates two numbers and never touches the CSS transform.
Pressing means taking --p to 1 in 45 milliseconds with power2.out and bringing it back to 0 with elastic.out(1, 0.45); at the same time a radial orange halo under the key lights up and fades in six tenths.
The pilot is a repeating timeline with one call per letter: the gap between letters varies with a fixed-seed generator, spaces are a little longer, and every loop matches the previous one, so preview and video agree.
A keydown on the page or a tap on a key stops the pilot and the headline becomes what you type, with delete, return and esc doing their job; after eight seconds without keys the pilot starts over.
| Name | File | Default | What it changes |
|---|---|---|---|
HEADLINES | script.js | 'Type like you mean it.|Every press, felt.|Built to be heard.' | The headlines the keyboard types one after another, separated by |. |
TYPE_SPEED | script.js | 9 | How many letters per second the pilot types. |
HOLD | script.js | 1.6 | The seconds the finished headline holds before it is deleted. |
DELETE_SPEED | script.js | 26 | How many letters per second the delete key removes. |
TRAVEL | script.js | 0.8 | How far a pressed key goes down, relative to its height. |
TILT | script.js | 38 | How far the keyboard tilts back, in degrees. |
ACCENT | script.js | '#ff5a36' | The colour of the cursor, the glow under the keys and the esc and return keys. |
For the opening of a keyboard or accessories shop, or a writing app, or any headline that should feel typed right now: the keyboard shows the product and writes the message at the same time.
The same animation with adapted sizes: the key unit is worked out from the width and height of the box, the headline stays on one line with a size tied to the screen and the «Ships in 48h» line goes away. The keys respond to the finger and type the headline; the hint below says «Tap the keys».
No typing and no keys going down: the first headline is already written, the cursor is still, and pressing a key only lights the glow underneath.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.3 KB; the libraries: GSAP 28 KB.
Tested on 28 October 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.