Ink Fluid Trail: a Hero Headline You Stir With Coloured Ink
- Skill Lab
- v0.2.0
- Web design
Build a hero page where the pointer stirs glossy coloured ink through a real-time fluid simulation and the giant headline turns light wherever the ink covers it. Pure code with no model calls: a GPU fluid solver, ink colours from your palette, a soft drop shadow, and the headline drawn from the page's own layout. The hero is followed by a full landing page: chapter titles, an intro, a product console drawn in HTML, feature cards, specs, stats, a quote, a call to action and a footer, with a moving glow and a floating section pill.
Exemples · 2

S’exécute dans un cadre sandbox sans accès à cette page.
Exécuter en ligne
Exécutez-le dans un sandbox SandBase et consultez vos résultats dans Lab.
Ouvrir dans Lab ↗Ce que vous obtenez
Bring your brand, headline, copy, links, palette and language. The Skill returns a full landing page (index.html), a section to paste into an existing site and a React component, with the bundled open fonts.
Fonctionnement
- 01
Describe the brand and build
Your agent asks for the brand, a headline of one to three short lines, copy, links, palette and language, and writes site.json, for example SPILLWORKS with pink, orange, blue and violet ink. With Node.js 18 or newer, node scripts/build-web.mjs --site site.json --out site writes index.html, an embeddable section, a dependency-free script, a React wrapper and the fonts. No model is called.
- 02
Run the fluid in the browser
Each frame a WebGL2 stable-fluids solver adds the pointer's push and ink, adds vorticity so the ink swirls, and makes the flow divergence-free with 20 pressure iterations. The headline is laid out by the page as real text, then redrawn into the same frame, dark on paper and light under ink. Without WebGL2 or with reduced motion it shows as static text.
- 03
Check and hand over
Preview with node scripts/serve.mjs site. Move across the headline and confirm that the letters flip where the ink passes, that the ink fades within a few seconds, and that the page still reads correctly with WebGL off. Then hand over the site folder: the full index.html, or section.html with ink-fluid.js and fonts, or the React wrapper.
FAQ
Does Ink Fluid Trail call a model or need an API key?
No. Ink Fluid Trail is pure code: HTML, one script and bundled fonts, with no model calls and no media files. Because the fluid solver runs in the visitor's browser, the page needs no API key and nothing to pay for. Your coding agent may use its own model to write site.json and the copy, but the page it builds never calls one.
What happens in Ink Fluid Trail without WebGL2?
The headline shows as normal text and the rest of the page works without the ink. Ink Fluid Trail needs WebGL2 with float render targets (EXT_color_buffer_float), which most desktop and phone browsers have. The same static fallback appears when the visitor has reduced motion turned on, so the page always stays readable.
Can I use my own colours and font with Ink Fluid Trail?
Yes. In Ink Fluid Trail you set palette.bg, ink, inkOn and at least two dye colours in site.json; pick inkOn for contrast with the dyes and ink for contrast with bg. The headline is drawn with the page's own font, so any web font works. The bundled fonts cover Latin only, and Chinese text uses the system bold sans.
Which fluid settings can I tune in Ink Fluid Trail?
Ink Fluid Trail reads its fluid settings from site.json: radius sets the splat size, force how hard the pointer pushes, curl how much the ink swirls, and dyeFade how fast ink disappears per second. velocityFade, shadow and gloss shape the motion and look, and ambient turns the slow automatic stir on or off. Every value is range-checked when the page is built.
Does Ink Fluid Trail work on phones?
Yes. On phones Ink Fluid Trail lets a dragged finger stir the ink until the browser starts scrolling, and the example was checked in a 390 px phone viewport. A slow automatic figure-eight keeps the ink moving before anyone touches the page. Phones without WebGL2 float render targets show the static headline instead.
Can I add the Ink Fluid Trail hero to an existing site?
Yes. Paste section.html with ink-fluid.js, ink-fluid.css and the fonts folder into your page, or use the InkFluid.jsx React wrapper. ink-fluid.js has no dependencies, and InkFluid.mount(el, options) returns inspect, splat and destroy. CSS classes are prefixed ift- so they do not clash with your styles. Each headline line must fit on one line; other wrapping is not supported.
Plus de Skills
Tous les Skills Web design →
Baked 3D Story Site
A three-page 3D story site with baked light, scroll stops that loop and a shader cut between pages, in one offline file.

UI Finishes
Metal, jewel, halo, roll, fill, offset and ring buttons, media cards, glass and textures, each checked in rest, hover, focus and pressed for real contrast.

Headline Motion
Headlines, labels and numbers that rise, decode, type, rotate, count and draw themselves without moving the layout, measured in a real browser.

Scroll Chapters
Long pages told chapter by chapter: a pinned stage, sliding panels, a text crawl, lit paragraphs, stacking cards and drifting columns, checked in a real browser for dead scroll.

Scroll 3D Product Site
A complete product website where scroll turns, opens and takes apart a live 3D model, with every video and image rendered from that model, in one offline file.

Landing Page System
A complete single-file landing page with a conversion structure and a shared visual system, checked by a rendered-page audit before delivery.
