
Speeding marquee
Scroll, Text, Hover
The black page of Northvale Sky Society, a made-up astronomy club: a still sky of dots, the panel of this month’s star night with its close button, the countdown to the next night with rolling digits and the «What am I looking at?» button. The button opens a Windows 98 window the way Windows did: a dotted frame leaps from the button to the window in steps, leaving a short trail, then the window is there, its title bar still grey and turning blue a moment later. Inside, the line that explains the sky is typed out with a block caret.
Rebuilt from scratch studying starpartysl.com by Hayda Studios: the idea is theirs; code, copy and images are ours. Read how it’s made
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>
<!--
"Windows 98 sky window" 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 Windows 98 window that explains the sky, with the countdown to the star night</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/jetbrains-mono@5.3.0/wght.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage" data-stage>
<!-- the black page of a made-up astronomy club, Northvale Sky Society: a still sky of dots, the panel of this
month's star night, the countdown to the next night with digits that roll, and the button that opens a
Windows 98 window explaining what you are looking at. The window opens the nineties way: a dotted frame
that leaps from the button in steps, then the window, its title bar turning from grey to blue -->
<canvas class="sky" data-sky aria-hidden="true"></canvas>
<header class="top">
<span class="brand">
<svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true">
<path d="M10 1.5 11.6 8.4 18.5 10 11.6 11.6 10 18.5 8.4 11.6 1.5 10 8.4 8.4Z"/>
<circle class="brand__dot" cx="16.2" cy="3.8" r="1"/>
</svg>
<span class="brand__name">Northvale Sky Society</span>
</span>
<span class="top__note">Monthly star night</span>
</header>
<section class="panel" data-panel aria-label="This month">
<button class="x" type="button" data-panel-close aria-label="Close panel">
<svg viewBox="0 0 10 10" aria-hidden="true"><path d="M2 2 8 8M8 2 2 8"/></svg>
</button>
<p class="label">This month</p>
<h2 class="panel__title">Star Night on the hill</h2>
<p class="panel__text">Telescopes out from 8 PM. Free entry, bring a blanket and something warm.</p>
<div class="panel__row">
<svg class="moon" viewBox="0 0 24 24" aria-hidden="true">
<circle class="moon__disc" cx="12" cy="12" r="9"/>
<path class="moon__lit" d="M12 3a9 9 0 0 1 0 18a5.2 9 0 0 0 0-18Z"/>
</svg>
<span class="panel__meta"><span class="label">Moon</span><span class="value">Waxing crescent, 21%</span></span>
</div>
</section>
<footer class="ticker">
<div class="ticker__col">
<span class="label">Next star night</span>
<span class="value value--date">Dec 4 · 8:00 PM</span>
</div>
<div class="ticker__col ticker__col--count">
<span class="label">Starts in</span>
<span class="count" data-count aria-live="off"></span>
</div>
<div class="ticker__col ticker__col--btn">
<button class="w98btn ask" type="button" data-ask>What am I looking at?</button>
</div>
</footer>
<div class="zooms" data-zooms aria-hidden="true"></div>
<div class="win" data-win role="dialog" aria-label="Sky Guide">
<div class="win__bar" data-bar>
<span class="win__title">
<svg class="win__icon" viewBox="0 0 8 8" aria-hidden="true" shape-rendering="crispEdges">
<path d="M3 0h2v2h2v2H5v2H3V4H1V2h2Z"/><path class="win__icon-s" d="M6 6h2v2H6Z"/>
</svg>
Sky Guide
</span>
<button class="w98btn win__x" type="button" data-win-close aria-label="Close window">
<svg viewBox="0 0 8 7" aria-hidden="true" shape-rendering="crispEdges"><path d="M0 0h2v1h1v1h2V1h1V0h2v1H7v1H6v1H5v1h1v1h1v1h1v1H6V6H5V5H3v1H2v1H0V6h1V5h1V4h1V3H2V2H1V1H0Z"/></svg>
</button>
</div>
<div class="win__body">
<svg class="win__glyph" viewBox="0 0 32 32" aria-hidden="true" shape-rendering="crispEdges">
<path class="g-ring" d="M10 2h12v2h4v2h2v4h2v12h-2v4h-2v2h-4v2H10v-2H6v-2H4v-4H2V10h2V6h2V4h4Z"/>
<path class="g-in" d="M10 4h12v2h4v4h2v12h-2v4h-4v2H10v-2H6v-4H4V10h2V6h4Z"/>
<path class="g-i" d="M15 8h2v2h-2Zm-1 5h3v9h2v2h-6v-2h2v-7h-1Z"/>
</svg>
<p class="win__text"><span data-type></span><span class="caret" data-caret></span></p>
</div>
<div class="win__foot">
<button class="w98btn win__ok" type="button" data-win-ok>OK</button>
</div>
</div>
<svg class="cursor" data-cursor viewBox="0 0 12 19" aria-hidden="true" shape-rendering="crispEdges">
<path class="cursor__b" d="M0 0h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1H8v1h1v1h1v2H9v1H7v-1H6v-2H5v-1H4v1H3v1H2v1H1v1H0Z"/>
<path class="cursor__w" d="M1 2h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1H7v1h1v2h1v2H7v-2H6v-2H5v-1H4v1H3v1H2v1H1Z"/>
</svg>
</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.
39 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 “Windows 98 sky window” from Animorio and fit it into my siteSeven divs with a dashed border, ready in advance. On opening we measure the button and the window (which lands above the button, aligned right and inside the screen), and frame i is placed part of the way between the two with gsap.set in a timeline: one set every ZOOM_TIME / STEPS seconds, and each frame switches off TRAIL steps later. No soft tweens: the snap is the taste of Windows 98.
The title bar has a ::before with the grey gradient of inactive windows, and its opacity is a CSS variable, --off. The window is born with --off at 1 and GSAP takes it to 0 in 0.16 s with steps(3): three snaps from grey to blue.
A counter runs from 0 to the length of the line in length / 46 seconds with ease none, and on every update the span takes the line cut there. The block caret stays solid while typing, then blinks with a timeline of three sets (solid, empty, solid) repeated forever.
Each digit is a window one row tall over a strip of eleven rows: the first is a spare, the others go from 0 to 9. The strip moves with yPercent -(digit + 1) × 100/11, in 0.55 s with back.out(1.25). When the count goes from 0 to 9 the spare row takes the new digit, the strip rolls down onto it and then jumps silently to the real row: the number always rolls down.
Buttons and window are four inset box-shadows (white and light grey top left, grey and almost black bottom right); pressed, they swap, and the padding moves one pixel down and right so the label sinks.
| Name | File | Default | What it changes |
|---|---|---|---|
STEPS | script.js | 7 | How many dotted frames the leap from the button to the window makes. |
ZOOM_TIME | script.js | 0.32 | Seconds of the leap, opening and closing. |
TRAIL | script.js | 3 | How many frames stay on screen together, like a trail. |
TITLE_ON | script.js | 0.16 | Seconds of the title bar from grey to blue. |
TYPE_SPEED | script.js | 46 | Letters per second of the typed line. |
ROLL_TIME | script.js | 0.55 | Seconds of each digit rolling to the next one. |
SETTLE | script.js | 1.25 | How far a digit overshoots before it settles (1 = none). |
COUNT_FROM | script.js | 1053440 | Seconds to the star night when the page opens (12 days, 4 h, 37 min, 20 s). |
STAR_DENSITY | script.js | 1 | How many stars in the sky behind (1 = the default). |
PANEL_FADE | script.js | 0.3 | Seconds of the panel closing (the site uses 0.3). |
IDLE | script.js | 1.1 | Seconds before the pointer starts by itself. |
LOOP | script.js | true | Left alone, it opens the window, closes it, closes the panel, and starts again. |
MESSAGE | script.js | These are the stars, planets and constellations above the hill right now. Drag the sky left or right to look around. | The line typed inside the window. |
To explain something on the page without taking the visitor away: the help of an interactive piece (a map, a sky, a configurator), the rules of a game, the «what is this?» of an event or club site. The countdown with rolling digits works for any event, launch or sale.
The same: the countdown goes on top at full width, date and button below; the window takes at most the screen width minus 32 px and lands above the button, inside the edges. On short screens the panel drops its line. A tap does not switch on the hover.
No leaping frames and no rolling digits: the window fades in with the line already written, the digits change in place, the panel fades without moving. No pointer on its own.
GSAP 3.15.0, JetBrains Mono (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.5 KB; the libraries: GSAP 28 KB.
Tested on 14 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.
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.