
Ink that reveals
WebGL, Hover
A white plaster rosette on a white wall: at rest you can hardly see it. Where the pointer passes the light comes in low, every leaf and petal casts its shadow, and after a couple of seconds the plaster falls back asleep.
Rebuilt from scratch studying pensatori-irrazionali.com by Pensatori Irrazionali: 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>
<!--
"Raking light" 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="it">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>La luce radente</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/standard.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="muro" data-muro>
<!-- il gesso: uno shader lo illumina di taglio solo dove è passato il puntatore -->
<canvas class="tela" data-tela role="img" aria-label="Un rosone di gesso bianco che si accende di luce radente dove passa il puntatore"></canvas>
<p class="nota" data-nota>Passa sopra il muro: dove passi la luce arriva di taglio e il gesso si sveglia.</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.
13 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 “Raking light” from Animorio and fit it into my siteThe script draws the rosette on a 2D canvas in shades of grey, where lighter means higher: a ring, 44 beads, 60 leaves, 24 gradient petals and a button. Then it blurs it with three box-blur passes, horizontal and vertical: the height is max(wide blur, 0.6 × narrow blur), so the edges stay soft but the details survive. A third, medium blur slightly darkens the folds. Height and folds go into a 640 × 640 RG16F texture (448 on phones).
A second 2D canvas, 216 pixels wide and shaped like the wall, holds the trail. Every tick it is covered in black at alpha 1 − 0.85^(dt × 60) and the latest 200 points are redrawn in lighter mode: a radial stamp with alpha (1 − age/120)² × 0.13 and a radius that grows and shrinks with sin(π × life). The pointer adds ⌈30 × distance⌉ points per tick, so even a quick gesture leaves a continuous trail. It draws at most 44 times a second, and the loop stops when the wall leaves the screen or the tab is hidden.
The shader reads the trail with five samples and derives k = (smoothstep(0, 0.3, t) × smoothstep(0, 1, t))^0.7. From k come the depth of the relief (0.6 to 9) and the height of the light (z from 1.4 to 0.45). The normal comes from the height differences between neighbours, and the light is (ambient + n·L) / (ambient + L.z): divided by what the flat plane receives, so the flat wall always keeps the same white and only what has a slope changes. Highlights are not clipped abruptly: they approach white along an exponential curve.
For each point the shader walks towards the light, twelve steps of 2.5 five-hundred-and-twelfths of the relief, and measures how far the ray passes above the relief, divided by the distance. The smallest value, passed through smoothstep(−0.22, 0.22), says how much the point is in shadow: the penumbra widens with distance, as under a real light. With a high light the ray climbs fast and there is no shadow; with raking light the shadows lengthen.
| Name | File | Default | What it changes |
|---|---|---|---|
SPEGNE | script.js | 0.85 | How much of the trail survives every sixtieth of a second: higher, the plaster stays awake longer. |
FORZA | script.js | 0.13 | How much each pass of the pointer lights up. |
PROFONDO | script.js | [0.6, 9] | The depth of the relief asleep and awake. |
AMBIENTE | script.js | 0.9 | The diffuse light: higher, lighter shadows. |
rosone() | script.js | cornice, ghirlanda, fiore | The relief drawing: anything drawn in greys on a canvas becomes plaster, a logo or a word too. |
GESSO, --gesso | script.js, style.css | #EFECE6 | The wall colour: change it in both files, or the edge of the canvas shows. |
For a page that wants to reward exploring: a mark, a work, a symbol you only discover by passing over it. It works with any drawing in greys, a logo too.
The finger paints the light and a tap lights up its spot. The trail is smaller (128 pixels), drawn 36 times a second at density 1, and the wandering points light up more, because a finger does not pass all the time. Inside an iframe a vertical finger stays with the page.
No trail and no wandering points: the relief stays still under a half-low light, readable. A tap takes the light from straight to raking, and back, in six tenths of a second.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.1 KB; the libraries: GSAP 28 KB.
Tested on 27 September 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.