Try 'magnetic button'
View code

Specification

Catalogue
No. 26 of 110
Interaction
Autoplay
Element
Background
Preview
Live component
Imports
react 19.3.1
Added

Notes

Slow pigment washes in the brand's colours, drawn live behind a hero.

Atmosphere with a light touch: it renders small and slow, only on screen, and freezes on slow devices and for reduced motion.

WebGL1, 0.4 render scale, 24fps. Runs only on screen, after load. Still frame for reduced motion or software GL.

Code

React and plain CSS
"use client";

import { InkWash } from "@/components/pieces/kit/ink-wash";
import { mixHex, PIECE_ACCENT, PIECE_GROUNDS } from "@/lib/pieces/accent";
import type { LivePreviewProps } from "@/components/live/types";
import { PieceStage } from "@/components/pieces/stage/PieceStage";
import "./ink-wash.css";

// Three pigments from the one accent: itself lightened, and two neighbours mixed toward sky and amber.
const COLORS = {
  ground: PIECE_GROUNDS.light.bg,
  pigments: [mixHex(PIECE_ACCENT, "#ffffff", 0.35), mixHex(PIECE_ACCENT, "#8cabd1", 0.6), mixHex(PIECE_ACCENT, "#e0a366", 0.55)],
} as const;

function InkWashDemo() {
  return (
    <div className="dm-wash">
      <InkWash colors={COLORS} />
      <h2>A calm place to start</h2>
      <button type="button" className="dm-btn" data-variant="solid">
        Book a first session
      </button>
    </div>
  );
}

// The one piece pinned to a ground: it is a background, painted on warm paper, so it keeps
// the light stage in both site themes (the wash ground is the light stage colour).
export default function InkWashEntry(props: LivePreviewProps) {
  return (
    <PieceStage {...props} ground="light" label="Living watercolour wash" replay>
      <InkWashDemo />
    </PieceStage>
  );
}

More like this

Header that steps aside

ScrollNavigation

Focus carousel

ScrollMedia and galleries

Masked headline reveal

Text Animation, AutoplayPage sections

Timeline with a line that fills

ScrollPage sections

Video poster that opens the player

Press, Layout AnimationMedia and galleries

Sweeping headline phrase

Text AnimationText and code