
Woven thread background
Backgrounds, Hover
A page background for the opening of a made-up listening bar, on near black: behind the headline the city lights seen out of focus, soft discs on three planes that drift and breathe, with a brighter rim and a hint of the six-bladed aperture in the largest. On arrival the focus racks from fully blurred into place; where the pointer passes, the nearby discs shrink and sharpen on a spring. Minimal style, canvas 2D.
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>
<!--
"Bokeh 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>Bokeh background</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/jetbrains-mono@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- the opening of an invented late-night listening bar, Ember Room, on near black: behind the words the city lights
seen out of focus, soft discs on three planes of focus that drift and breathe. Where the pointer passes, the focus
moves there: the discs nearby shrink, sharpen and brighten, the rest melt back into the blur -->
<main class="stage" data-stage>
<canvas class="lights" data-lights 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__iris" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 1.6 13.54 4.8V11.2L8 14.4 2.46 11.2V4.8Z" /><circle cx="8" cy="8" r="2.2" /></svg>
Ember Room
</p>
<h1 class="title" id="hero-title" data-in><span class="title__line">The city,</span><span class="title__line">out of focus.</span></h1>
<p class="lede" data-in>A listening bar on the ninth floor. Vinyl, low light, the skyline gone soft.</p>
<p class="meta" data-in><span>Open till 2 am</span><span class="meta__rule" aria-hidden="true"></span><span>Floor 9</span></p>
</section>
</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.
19 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 “Bokeh background” from Animorio and fit it into my siteThe discs come from a repeatable random, always the same, on three planes: many and small far away, mid, few and large up close. Positions are fractions of the page and sizes fractions of the short side, so a resize does not move the scene.
Each disc is a radial gradient with a softer centre and a brighter ring near the edge, then the falloff: the more out of focus, the larger it is, the softer its edge and the fainter, because the same light spreads over more space. The discs add up, like real light.
In the largest discs the outline moves from a circle to the hexagon of the aperture: the radius of every point is mixed with that of a hexagon, by an amount set by HEX, and only while the disc is out of focus.
Each disc has a wanted blur: its plane’s, minus a Gaussian bell around the pointer, plus the entrance’s. The shown blur chases it on a spring, so each disc reaches focus with a hair too much and settles; in focus the rim becomes a thin line.
The discs drift slowly, the near ones faster than the far ones, and wrap to the other side; they breathe on a sine, each at its own pace. An ellipse around the headline lowers their light so the words read.
| Name | File | Default | What it changes |
|---|---|---|---|
COUNT | script.js | 46 | How many discs of light in all, across the three planes. |
BLUR | script.js | 1 | How out of focus they are at rest. |
FOCUS_SIZE | script.js | 170 | Radius of the area that comes into focus under the pointer, in pixels. |
DRIFT | script.js | 1 | Speed of the discs’ drift. |
HEX | script.js | 0.5 | How much the six-sided aperture shows in the large discs. |
GLOW | script.js | 1 | Light of the discs. |
AUTO_PILOT | script.js | 2.5 | After how many idle seconds the fake pointer passes. |
--accent | style.css | #ffb35c | The warm colour of the discs. |
--accent-deep | style.css | #f0784a | The second, redder tone. |
Behind the opening headline of a bar, an evening restaurant, a city hotel, a music night, a photographer or an app that wants the feel of the evening seen from a window.
The same scene with adapted sizes: sizes follow the short side, the headline is sized on width and height together and a tap brings the focus where the finger lands, for a couple of seconds.
The discs stay, still and already in place: no drift, no breathing, no moving focus; the words are already there.
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.1 KB; the libraries: GSAP 28 KB.
Tested on 2 December 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.