
Wind stroke background
Backgrounds, Physics
The home page of Lowmoor Star Night, a made-up astronomy night, is tonight’s sky drawn on a canvas in a stereographic projection: six hundred stars with their magnitudes, Saturn with its ring, the Pleiades, the horizon curving at the bottom with the cardinal points. Drag it left and right and it turns with inertia; up or down, a spring brings it back to the horizon. The constellations draw themselves line after line as they come into view, with a small glint where a line reaches a star, and the names follow a beat later. With the pointer still, a thin reticle locks on the nearest bright star and writes its name and magnitude. Rebuilt from scratch from the live sky of Star Party Silverlake, minimal style.
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>
<!--
"Star night sky" 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 night sky of the star party, to drag, with the constellations drawing themselves</title>
<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" data-stage>
<!-- the home page of a made-up monthly astronomy night, Lowmoor Star Night. The whole page is the sky over the
field tonight, drawn on a canvas: a few hundred stars with their magnitudes, the constellations in thin lilac
lines, a planet, the horizon curving at the bottom. Drag it left or right: it turns with inertia, the lines of
each constellation draw themselves as it comes into view and the names follow. Hover a star to aim at it -->
<canvas class="sky" data-sky aria-label="A night sky to drag left and right, with constellations and star names"></canvas>
<header class="top" data-rise>
<p class="brand">
<svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true">
<path d="M10 1.8 11.3 8.7 18.2 10 11.3 11.3 10 18.2 8.7 11.3 1.8 10 8.7 8.7Z"/>
</svg>
<span>Lowmoor Star Night</span>
</p>
<p class="next"><span class="next__label">Next night</span><span class="next__value">Nov 19 · 8 PM</span></p>
</header>
<p class="hint" data-hint>
<svg class="hint__arrow hint__arrow--l" viewBox="0 0 16 16" aria-hidden="true"><path d="M12.6 8H3.4M7.2 4.2 3.4 8l3.8 3.8"/></svg>
<span>Drag the sky</span>
<svg class="hint__arrow hint__arrow--r" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.4 8h9.2M8.8 4.2 12.6 8l-3.8 3.8"/></svg>
</p>
<footer class="bottom" data-rise>
<p class="facing"><span class="facing__label">Facing</span><span class="facing__value" data-facing>SE · 132°</span></p>
<p class="tonight"><span class="facing__label">Tonight</span><span class="tonight__value">Saturn, the Pleiades, Orion</span></p>
</footer>
<svg class="cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5 2.8v16.4l4.2-4 2.8 6.2 2.9-1.3-2.8-6.1h5.9Z"/></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.
25 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 “Star night sky” from Animorio and fit it into my siteThe stars come from a seeded pseudo-random generator (mulberry32), so the sky is always the same: uniform azimuth, altitude through an arcsine so they spread evenly over the dome, magnitude through a power that makes bright ones rare, a colour between blue-white and warm. The constellations are a centre plus the offsets of their stars in degrees, with the list of lines.
Each star becomes a vector on the sphere; it is rotated around the vertical axis by the view azimuth and around the horizontal one by the view altitude, then projected with k = 2 / (1 + z). The scale is measured on the page diagonal, so the field is about 55 degrees on a computer and 40 on a phone, and the horizon curves as in a planetarium.
Dragging moves the azimuth by 1/(S·0.0175) degrees per pixel and measures its speed; let go, the speed decays with exp(−dt·INERTIA). Vertically the drag meets a resistance that grows with distance, and a spring damped at 0.72 of critical brings it back to the rest altitude with a hair of bounce.
Each constellation has a progress from 0 to 1 that rises when its centre is in view and falls when it is far. The lines draw in turn, each in its slice of the progress with a cubic ease-out, and they start and end five pixels from the stars. When a line arrives, the star it reaches makes a small ring that widens and fades; the name comes in when the lines are almost done.
Without dragging, the nearest named star within 70 pixels of the pointer is found; the reticle follows it softly and tightens from 1.5 to 1 in scale. Left alone, a GSAP timeline moves a fake pointer that drags, aims at a star in view and drags back, calling the same functions as the real pointer; the first real touch stops it.
| Name | File | Default | What it changes |
|---|---|---|---|
STARS | script.js | 620 | How many stars are in the sky (the named ones are added on top). |
LINE_SPEED | script.js | 1 | How fast the constellation lines draw themselves (2 = twice as fast). |
INERTIA | script.js | 2.2 | How quickly the sky stops after you let go (lower = it glides longer). |
SPRING | script.js | 70 | How hard the spring brings the sky back to the horizon after a vertical drag. |
TWINKLE | script.js | 0.22 | How much the faint stars twinkle (0 for still). |
STAR_SIZE | script.js | 1 | The size of the stars. |
ZOOM | script.js | 1 | How close the sky is (higher = fewer degrees on screen). |
METEOR_EVERY | script.js | 11 | Every how many seconds a meteor crosses (0 for none). |
IDLE | script.js | 5 | Seconds before the pointer drags the sky by itself. |
LOOP | script.js | true | Left alone, drag and aim again and again. |
For the home page of an astronomy night, an observatory, a planetarium, a camping under the stars or a night festival; behind the headline of a stargazing app, an outdoor event or an about page that wants a live background to touch.
The same animation with adapted sizes: the scale is measured on the diagonal, so on a phone the field is narrower (about 40 degrees) and the same constellations fit the box; the text is sized with min(vw, vh) and the line with what is up tonight hides under 560 pixels. The finger drags like the mouse (touch-action: none); the reticle arrives when the finger rests near a star.
No inertia, no spring, no twinkle or meteors, no pointer moving by itself: the sky can still be dragged, the constellation lines and names are already drawn, and every six seconds the sky fades to another part of the sky.
GSAP 3.15.0, JetBrains Mono (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 11 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.