
Speeding marquee
Scroll, Text, Hover
The opening of a made-up developer’s portfolio, Noor Haddad: the headline starts as code in a small editor, typed in bursts piece by piece with a caret that thins and a highlighted line that moves down. Then it compiles: the tags pull back and fade, the words fly to their places and land wide before settling, the word in <em> becomes the accent italic, and the subtitle, the two buttons and the «Available for work» label arrive. Hover a word and the piece of code that makes it so rises above it. Then back to the code. Minimal style, a single accent.
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>
<!--
"Developer hero" 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>Developer hero</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/mona-sans@5.3.0/wdth-italic.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>
<!-- The opening of a made-up developer's portfolio, Noor Haddad. The headline is first written as code in a small
editor; then it "compiles": the tags and quotes pull back and fade, the words fly to their places and widen into
the real headline, the word in <em> becomes the accent italic, and the subtitle and buttons arrive. Hover a word
of the headline and the piece of code that makes it so rises above it. Then it goes back to the code. -->
<main class="stage">
<div class="scene" data-scene>
<section class="editor" data-editor aria-hidden="true">
<header class="editor__bar">
<span class="tab">
<svg class="tab__icon" viewBox="0 0 16 16"><path d="M4 1.75h5.2L12.5 5v9.25H4z"/><path d="M9 1.9V5.2h3.3"/></svg>
hero.html
</span>
<span class="editor__lang">HTML</span>
</header>
<div class="lines" data-lines>
<span class="band" data-band></span>
<span class="caret" data-caret></span>
<div class="line"><span class="ln">1</span><span class="code"><span class="t tag"><style></span><span class="t prop">em { color: </span><span class="t acc">blue</span><span class="t prop"> }</span><span class="t tag"></style></span></span></div>
<div class="line"><span class="ln">2</span><span class="code"><span class="t tag"><section</span><span class="t attr"> class=</span><span class="t str">"hero"</span><span class="t tag">></span></span></div>
<div class="line"><span class="ln">3</span><span class="code"><span class="t sp"> </span><span class="t tag"><h1></span><span class="t txt" data-w="i">I</span><span class="t sp"> </span><span class="t txt" data-w="build">build</span><span class="t sp"> </span><span class="t tag"><em></span><span class="t txt acc" data-w="calm">calm</span><span class="t tag"></em></span><span class="t sp"> </span><span class="t txt" data-w="interfaces">interfaces.</span><span class="t tag"></h1></span></span></div>
<div class="line"><span class="ln">4</span><span class="code"><span class="t sp"> </span><span class="t tag"><p></span><span class="t txt" data-w="sub">Front-end engineer in Lisbon.</span><span class="t tag"></p></span></span></div>
<div class="line"><span class="ln">5</span><span class="code"><span class="t sp"> </span><span class="t tag"><a></span><span class="t txt" data-w="work">View work</span><span class="t tag"></a></span><span class="t sp"> </span><span class="t tag"><a></span><span class="t txt" data-w="contact">Contact</span><span class="t tag"></a></span></span></div>
<div class="line"><span class="ln">6</span><span class="code"><span class="t tag"></section></span></span></div>
</div>
</section>
<section class="render" data-render aria-label="Noor Haddad, front-end engineer">
<p class="badge" data-badge><span class="badge__text">Available for work</span></p>
<h1 class="title" data-title>
<span class="w" data-w="i" data-src="<h1>">I</span>
<span class="w" data-w="build" data-src="<h1>">build</span>
<em class="w w--em" data-w="calm" data-src="<em> color: blue">calm</em>
<span class="w" data-w="interfaces" data-src="</h1>">interfaces.</span>
</h1>
<span class="rule" data-rule aria-hidden="true"></span>
<p class="sub w" data-w="sub" data-src="<p>">Front-end engineer in Lisbon.</p>
<div class="actions">
<a class="btn btn--solid" href="#work" data-btn="work">
<span class="btn__bg" data-bg></span>
<span class="btn__text w" data-w="work" data-src="<a>">View work</span>
<svg class="btn__arrow" data-arrow viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.5M8.5 4l4 4-4 4"/></svg>
</a>
<a class="btn btn--ghost" href="#contact" data-btn="contact">
<span class="btn__bg" data-bg></span>
<span class="btn__text w" data-w="contact" data-src="<a>">Contact</span>
</a>
</div>
<span class="peek" data-peek aria-hidden="true"><span class="peek__text" data-peek-text></span></span>
</section>
<svg class="pointer" data-pointer viewBox="0 0 20 20" aria-hidden="true"><path d="M4 2.5v13.2l3.6-3.4 2.4 5.4 2.3-1-2.4-5.3 5-.3z"/></svg>
</div>
</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.
58 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Developer hero” from Animorio and fit it into my siteEvery headline word exists twice: in the code, in a span with its data-w, and in the real opening, in an inline-block span with the same data-w. The two sit on top of each other in the same grid cell, so the opening is already laid out even while hidden.
Just before compiling both words are measured: the x and y offset between code and headline, and the ratio between the two font sizes. The headline word starts there, small, and returns to x 0, y 0, scale 1 with back.out: the FLIP technique, with values computed at the right moment (immediateRender off).
font-variation-settings reads two CSS variables, --wd and --wg. GSAP starts --wd at 110 and, as the word is nearly there, takes it to 100 with back.out: the word lands wide and narrows with a small bounce. Every word keeps the width measured at 100, so the headline never re-wraps while it settles.
Every word keeps in data-src the code that makes it so. On hover the dark label takes that text, measures itself and centres above the word, rising 7 pixels with back.out; the word lifts 2 pixels. While the pointer is over it the loop pauses.
| Name | File | Default | What it changes |
|---|---|---|---|
TYPE_RATE | script.js | 11 | How many pieces of code are typed per second. |
FLY_TIME | script.js | 1.15 | How many seconds the words take to fly from the code to the headline. |
SPRING | script.js | 1.5 | How far the words overshoot as they land (0 = none). |
WIDE_FROM | script.js | 110 | The font width the words land at, before settling to 100. |
HOLD | script.js | 5.8 | How many seconds the finished opening stays before going back to the code. |
AUTOPLAY | script.js | true | A pointer hovers the words on its own until you do it yourself. |
--accent | style.css | #3550f2 | The colour of the italic, the caret and the line band. |
In the opening of a developer’s portfolio, on the personal page of someone who writes code, in the hero of a developer tool or a coding course; anywhere the headline can tell how it is made.
The code and the headline are sized on width and height (vw and vh, with clamp), so they fit the phone box: the code gets small but stays on one line, the headline goes to two lines and the card’s HTML label disappears. A finger taps a word to see its code.
No typing, no flight, no bounce: the finished opening shows straight away, still, and the code label fades in on hover.
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.8 KB; the libraries: GSAP 28 KB.
Tested on 30 November 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.
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.