Skip to content
animorio
IT
Back to the library

Windows 98 sky window

Hover, TextGSAP, CanvasMediumCompressed weight: Demo 8.5 KBGSAP 28 KBFreeDownload the zip

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

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>
<!--
  "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>

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.

39 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 “Windows 98 sky window” 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 a black page with a still sky of dots (one star in ten barely breathes) there are the star mark of Northvale Sky Society, the «This month» panel with the night on the hill, a drawn crescent moon and a close button, and at the bottom the date of the next night, the countdown in days, hours, minutes and seconds and the grey bevelled «What am I looking at?» button. Each digit of the countdown is a strip that rolls down to the next number with a small settle; going from 0 to 9 (or 0 to 5) it keeps rolling down instead of going back up. On click the button stays pressed and from its outline a dotted frame leaps in seven steps to the place of the window, three frames on screen together like a trail; then the Windows 98 window appears: grey, with bevelled edges, the «Sky Guide» title bar with the small yellow pixel star, the bevelled close button, the «i» icon and the OK button. The bar is born grey, like an inactive window, and turns into its blue gradient in three steps. The line is typed out at 46 letters a second, with a block caret that then blinks. The close button and OK sink into their bevel and the frame leaps back to the button. The close button of the panel lights up, its x turns, and the panel fades away. Left alone, a pixel arrow opens the window, closes it (once with the x, once with OK), closes the panel, and the panel comes back.

How it works

The leaping frame

Seven 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 bar that lights up

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.

The typed line

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.

The rolling digits

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.

The bevels

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.

Values to change

NameFileDefaultWhat it changes
STEPSscript.js7How many dotted frames the leap from the button to the window makes.
ZOOM_TIMEscript.js0.32Seconds of the leap, opening and closing.
TRAILscript.js3How many frames stay on screen together, like a trail.
TITLE_ONscript.js0.16Seconds of the title bar from grey to blue.
TYPE_SPEEDscript.js46Letters per second of the typed line.
ROLL_TIMEscript.js0.55Seconds of each digit rolling to the next one.
SETTLEscript.js1.25How far a digit overshoots before it settles (1 = none).
COUNT_FROMscript.js1053440Seconds to the star night when the page opens (12 days, 4 h, 37 min, 20 s).
STAR_DENSITYscript.js1How many stars in the sky behind (1 = the default).
PANEL_FADEscript.js0.3Seconds of the panel closing (the site uses 0.3).
IDLEscript.js1.1Seconds before the pointer starts by itself.
LOOPscript.jstrueLeft alone, it opens the window, closes it, closes the panel, and starts again.
MESSAGEscript.jsThese 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.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The leap starts from the real rectangle of the button and lands on the real one of the window: measured while display: none, the window is zero wide. Here it always stays in the layout, hidden with visibility.
  • A digit going from 0 to 9 on a strip from 0 to 9 would roll all the way back up: it needs the spare row above the 0.
  • A digit’s tween can start before the previous one is over (fast seconds, long ROLL_TIME): overwrite: true avoids two tweens on the same strip.

Libraries

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.

Testing

Tested on 14 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 animations