
Woven thread background
Backgrounds, Hover
The opening background of Halcyon, an invented notes app: on a near black ground three soft patches of colour, an ember orange and two close tones, drift slowly along their own paths and lean towards the pointer on a soft spring, under a fine grain that changes every frame like film stock. A click sends a small wave that swells the patches and lets them settle. The title and the pill stay sharp in the middle. Minimal style.
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>
<!--
"Grainy gradient background" 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 grainy gradient background</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/instrument-sans@5.3.0/index.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- the opening of Halcyon, an invented notes app: three soft patches of colour drift slowly on a near black
ground under a fine moving grain, and lean towards the pointer on a soft spring; a click sends a small wave -->
<main class="stage" data-stage>
<canvas class="glow" data-glow aria-hidden="true"></canvas>
<canvas class="grain" data-grain aria-hidden="true"></canvas>
<span class="vignette" aria-hidden="true"></span>
<section class="hero" aria-labelledby="hero-title">
<p class="kicker" data-in>
<svg class="kicker__mark" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 10.5c2.2-4.6 4.6-4.6 6 0s3.8 4.6 6 0"></path></svg>
<span>Halcyon, private beta</span>
</p>
<h1 class="title" id="hero-title">
<span class="title__line" data-in>Think in</span>
<span class="title__line title__line--soft" data-in>quiet colour.</span>
</h1>
<p class="line" data-in>Notes that settle on their own, so the idea stays and the noise goes.</p>
<button class="pill" type="button" data-pill data-in>
<span class="pill__fill" aria-hidden="true"></span>
<span class="pill__label">Join the beta</span>
<svg class="pill__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9M8.5 4.5 12 8l-3.5 3.5"></path></svg>
</button>
</section>
<p class="hint" data-hint aria-hidden="true">Move, then click anywhere</p>
</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
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 “Grainy gradient background” from Animorio and fit it into my siteThe three patches are radial gradients drawn on a hidden canvas one eighth of the screen, added up with 'lighter'. The visible canvas has the same small size and CSS stretches it to the full screen: the browser softens them for free and the work per frame is tiny.
Each patch has a home and a sine and cosine with different phases and speeds, so the three never move together. DRIFT sets how far they wander, DRIFT_TIME how long one loop lasts.
The target of each patch moves towards the pointer by PULL, more for the nearest patch. The patch catches it on a hand-written spring in the GSAP ticker, on the real time between frames (at most 0.1 s), with SPRING and DAMPING.
Four 128 by 128 noise tiles are made once; at every change (GRAIN_FPS per second) one is picked and shifted at random. The grain canvas sits on top in 'overlay' at a low opacity, one and a half pixels per grain.
A click takes a number from 0 to 1 in 0.32 s and back to 0 with elastic.out in 1.4 s: the patches' radius grows by WAVE. The pill fills with white from the left with scaleX, grows a hair with back.out and on press gives way and springs back.
| Name | File | Default | What it changes |
|---|---|---|---|
DRIFT_TIME | script.js | 14 | Seconds of one loop of each patch’s slow path. |
DRIFT | script.js | 0.16 | How far the patches wander from home, as a fraction of the screen. |
BLOB_SIZE | script.js | 0.46 | Radius of a patch, as a fraction of the shorter side. |
PULL | script.js | 0.22 | How much the patches lean towards the pointer. |
SPRING | script.js | 3.2 | Stiffness of the spring towards the pointer. |
DAMPING | script.js | 0.82 | Damping of the spring: higher means less bounce. |
WAVE | script.js | 0.28 | How much the patches swell with the click wave. |
GRAIN_FPS | script.js | 24 | How many times per second the grain changes. |
AUTO_PILOT | script.js | 2.2 | After how many seconds without a pointer the invisible pointer comes back (0 never). |
Behind the opening headline of a digital product that wants to feel calm and warm: a notes or writing app, an AI tool, a newsletter, a dark portfolio. It adds depth without images and without pulling the eye from the title.
The same: the patches follow the finger as it drags and a tap sends the wave. The patches are sized on the shorter side, so they stay full even in the low, wide box; the title is sized on the height too and the sentence hides below 460 pixels of height.
The patches stand still at home, the grain does not change and a click sends no wave; the type fades in.
GSAP 3.15.0, Instrument Sans (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.9 KB; the libraries: GSAP 28 KB.
Tested on 27 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.