Bruno DelorenceBruno
Appearance
Appearance

Choose your reading theme.

Contact

Crowd hero

New

A landing-page hero over a walking crowd, three people in it picked out in colour, tagged and linked as they walk.

crowd-hero/crowd-hero.tsx
Live · interactive

Your first believer is already walking past you.

Most of the people who would back you never hear your name. We map the quiet links between founders, angels and funds, so the right one slows down, turns around and asks to hear more.

The live component, numbered part by part. Every measurement is read from it as it is drawn. Point at a row to outline its part, or at a part to find its row.

When to use

  • The first screen of a product about people finding each other: founders and backers, mentors, hiring, a community.
  • A hero that should say “someone here is for you” without a photo: the crowd is drawn, so it never needs licences or model releases.
  • A landing page with room for a wide band: from about 360 px up, the band always takes the full width.

When not to use

  • Pages that must stay still or light: the crowd is a canvas animating every frame while on screen. Use a static picture.
  • A real directory of people. The highlighted people are illustrations with invented names; show real profiles in a list or cards.
  • More than one per page, or below the fold: it is a first-screen moment, and two crowds compete.
  • Products with nothing to do with people meeting: the picture would promise something the page doesn’t.

The crowd

  • Drawn, not filmed: every person is a procedural silhouette with a walk cycle, so the picture is yours and costs a few kilobytes.
  • Depth of field: sharp in a band across the middle, blurred near and far, so the eye goes to the highlighted people.
  • The same crowd every time for a given seed, so screenshots and docs stay stable.
  • A wider hero shows more people, not bigger ones: every size follows the band’s height.

Motion and pausing

  • It walks only while on screen and the tab is visible; scrolled away, it stops drawing.
  • A pause button stops it at any time; the walk is more than five seconds of motion beside text.
  • With reduced motion the crowd starts paused, and the highlights move only on Show others or a click, at once; play still starts the walk, as the reader’s choice.
  • rotate={0} keeps the highlights on the same people until the reader moves them.

Each one drawn with the component itself, used well or badly.

The words are the headline, the paragraph, the two buttons, the navigation, and the names and roles on the tags.

  • A headline about the reader, in sentence case with a full stop: Your first believer is already walking past you.
  • Buttons that say what happens: Get introduced, Browse founders; no “Learn more”.
  • Tags as a name and an initial, Noor A., and a role as what · stage: Investor · Series A, Founder · Health.
  • Invented people, unless they agreed to be on the page.

You can add this component with the shadcn CLI or by hand:

Into components/crowd-hero of any React project, with no setup:

Terminal
npx shadcn@latest add https://brunodelorence.com/r/crowd-hero.json

Either way it needs React 19.2 and a bundler that supports CSS Modules, such as Next.js or Vite. It has a dark colour scheme: it follows your page’s color-scheme, light unless the page sets one, or its colorScheme prop, with nothing to configure. Browsers without light-dark() show it light.

Usage

home.tsx
import { CrowdHero } from './crowd-hero';export function Home() {  return (    <CrowdHero      headline="Your first believer is already walking past you."      primaryLabel="Get introduced"      onPrimary={() => location.assign('/intro')}      secondaryLabel="Browse founders"      onSecondary={() => location.assign('/founders')}      autoplay={false}    />  );}

Each state below is a live instance, locked so you can study it.

The pieces it is built from, each with its measurements read live.

A light hero for a product about people finding each other. Under the navigation, a wide band of small grey people walks across a ground plane, sharp in the middle and blurred near and far, its edges fading into the page. Three of them are lit in green, red and blue, each with a tracking box, a name tag and a role, tied together by thin lines that follow them as they walk; every few seconds one highlight moves on to someone else. Click a person to pick them out, or press Show others. Below, the headline, a short paragraph and two buttons.

  • The crowd is one canvas. Each person is a procedural side-view silhouette: a round head, a torso leaning forward, legs and arms as round-capped strokes in two segments; the legs swing ±0.42 rad on opposite phases with the knee folding on the forward swing, the arms ±0.36 rad against them, and the body bobs 1.2 % of its height twice a stride. A stride is 12 frames plus a standing pose.
  • People walk 1–1.5 m/s on a ground plane, mostly across the view (within ±0.55 rad of it), at depths 3.5 to 10.4 m from a camera about 11 m up: far ones are drawn 2.3 times smaller, higher in the band and slower across it. Off one side they come back on the other; at the near and far ends they turn. Each frame they are sorted far to near.
  • Depth of field: the focal plane is at 6.3 m, and the blur grows with the distance from it in 1/z, like a lens’s circle of confusion, up to about 7 px at the near edge. Nothing is blurred while it plays: the walk is pre-drawn into 14 sprite sheets, one per depth band, each at its size and blur (the canvas blur filter, or a ring of faint copies where there is none).
  • Every size follows the band’s height (the focal length is 0.473 of it), so a wider hero shows more people, about 0.22 per square metre of visible ground, not bigger ones. The band is 26.7 % of the hero’s width tall, at least 250 px, and fades out at the sides (13 %) and the bottom with a CSS mask.
  • Three slots, green, red and blue, each hold a person near focus and in the middle of the band, at least a sixth of its width from the others. The colour is a gradient sprite (green to amber, red through orange to violet, blue to pink) cross-faded over 600 ms; every 6 s one slot moves on, the three a third of that apart, or sooner if their person drifts to the edge. Thin lines join the three and each to two people in grey.
  • The tags are HTML over the canvas, moved every frame to their person’s box: the name in 9–11 px monospaced capitals on the slot’s colour, the role under the box. They fade in with @starting-style and out over 600 ms.
  • Hovering a person boxes them; clicking or tapping takes the highlight that has been up longest to them. Show others moves all three. The walk stops off screen, in a hidden tab, and on the pause button; under reduced motion it starts paused, and play starts it only as the reader’s choice.
  • The layout is in container query units, measured on a 1440 px hero: 6 % side margins, a 4.4 % headline beside a 28.5 % column for the paragraph and the buttons. Under 640 px the links hide and the text stacks.
  • While on screen and untouched, a demo pointer picks someone out of the crowd and then presses Show others, in a loop; any input from the reader stops it.
PropTypeDefaultDescription
headlineReactNode—The headline, an h2.
ledeReactNode—The paragraph beside the headline.
primaryLabelstring'Get introduced'The dark button’s words.
onPrimary() => void—What the dark button does.
secondaryLabelstring'Browse founders'The light button’s words.
onSecondary() => void—What the light button does.
linksstring[]—The navigation’s links, by name; hidden on a hero under 640 px.
profiles{ name: string; role: string }[]—Who the highlighted people are: each new highlight takes the next one.
rotatenumber6Seconds each highlight stays on one person before moving on; 0 keeps them until the reader moves them.
pausedbooleanfalseStarts with the crowd stopped, as a still for docs and screenshots; the play button starts it.
seednumber7The crowd’s arrangement: the same seed draws the same crowd.
onHighlight(profiles: Profile[]) => void—Called with the highlighted profiles whenever one changes.
autoplaybooleantrueWhile on screen and untouched, a demo pointer picks people out of the crowd; any input from the reader stops it.
colorScheme'light' | 'dark' | 'system'—Light or dark colours, or the reader’s; without it, the page’s color-scheme.
classNamestring—Classes for the hero’s root.

Keyboard

  • Tab reaches the links, Sign in, the pause button, Show others and the two buttons, in that order.
  • Show others does with the keyboard what a click on a person does with the pointer: it moves the highlights.
  • Every control has a visible focus ring.

Screen readers

  • The canvas is an image with a short description of the scene; the tags over it are hidden from screen readers.
  • A visually hidden line lists the three people highlighted now; Show others and a click announce the new ones in a polite live region.
  • The pause button is named by what it does: “Pause the crowd”, then “Play the crowd”.

Motion

The walk can be paused at any time (WCAG 2.2.2), stops off screen and in a hidden tab, and starts paused under reduced motion. Nothing flashes: highlights fade over 600 ms.

Colour and contrast

The tags are white on green, red and blue fills of 4.5 : 1 or more, and the roles are 4.5 : 1 on the page in both schemes (WCAG 1.4.3). The three colours tell the highlights apart, but each also has its name, so nothing rests on colour alone (1.4.1).

In this build

  • The crowd is a canvas with role="img" and a short description; the tags over it are hidden from screen readers, and a visually hidden line names the three people highlighted now.
  • Show others is the keyboard’s way to move the highlights; it and a click announce the new people in a polite live region.
  • A pause button stops the walk at any time (WCAG 2.2.2); it also stops off screen and in a hidden tab, and starts paused under reduced motion, where highlights change at once.
  • Every control is a real button with a visible focus ring; the tags’ white names are 4.5 : 1 or more on their fills, and the roles 4.5 : 1 on the page in both schemes.

The complete source behind this demo. Open source under the MIT license, © 2026 Bruno Delorence: copy it, change it, ship it.

crowd-hero.tsx
// Copyright (c) 2026 Bruno Delorence. MIT License.'use client';import {  useEffect,  useEffectEvent,  useRef,  useState,  type MouseEvent as ReactMouseEvent,  type PointerEvent as ReactPointerEvent,  type ReactNode,} from 'react';import { Crowd, SLOT_COUNT } from './crowd';import { DemoPointer, runDemo, type Point } from './demo-pointer';import { Mark, Pause, Play, Shuffle } from './glyphs';import { useAutoplay } from './use-autoplay';import styles from './crowd-hero.module.css';/* * Crowd hero: a landing-page hero whose picture is a crowd. A wide band of small grey people walks * across a ground plane under the navigation, sharp in the middle and blurred near and far, its * edges fading into the page. Three of them are picked out in colour, green, red and blue, each * with a tracking box, a name tag and a role, and tied together by thin lines that follow them as
crowd-hero.module.css
/* Crowd hero (crowd-hero.tsx): a light landing-page hero. The navigation on top, a full-width band   of a walking crowd under it, and the headline with its paragraph and buttons below.   Sizes. The hero scales with its own width (container query units, cqi: 1cqi is 1% of it),   measured on a 1440 px-wide hero: 6cqi side margins (86 px), the navigation 4.7cqi down to its   middle, the crowd band 26.7cqi tall (385 px), the headline 4.4cqi (63 px) with a 28.5cqi column   beside it for the paragraph and the buttons. Under 640 px the links go and the text stacks;   the band keeps the full width and at least 250 px of height.   Colours are the tokens below, light-dark(light, dark) where the two differ: the component takes   the color-scheme it inherits from the page, or the one its colorScheme prop sets. The canvas   reads its grey from --crowd through its own `color`. */.root {  --page: light-dark(#f3f3f3, #0b0b0c);  /* The pale light the crowd stands in. */  --glow: light-dark(#fbfbfb, #161618);  --ink: light-dark(#141415, #f1f1f2);  --muted: light-dark(#5e5e63, #a3a3a9);  --crowd: light-dark(#3c3c40, #c6c6cc);  --soft: light-dark(#e3e3e5, #232326);  --soft-hover: light-dark(#d9d9dc, #2d2d31);  --primary: light-dark(#121213, #f1f1f2);  --primary-hover: light-dark(#2a2a2d, #d9d9dc);
crowd.ts
// Copyright (c) 2026 Bruno Delorence. MIT License.import { FRAMES, STANDING, makeSheet, type Sheet } from './figure';/* * The crowd: people walking on a ground plane seen from above and in front, projected, depth * sorted and drawn on one canvas, with three of them highlighted in colour and tied together. * * - The world is in metres. A person is about 1.75 tall and walks 1–1.5 m/s, mostly across the *   view (headings within ±0.55 rad of the x axis), wandering a little; a stride is 1.45 m. *   They spread over depths 3.8 to 10.4 m from a camera about 11 m up, so far people are drawn *   2.3 times smaller than near ones and higher in the band, and move slower across it. Leaving *   the view on one side they come back on the other; at the near and far ends they turn. * - Every size comes from the band's height (the focal length is 0.473 of it), so a wide band *   shows more people, not bigger ones: about 0.3 people per square metre of visible ground. * - Depth of field: the focal plane is at 6.3 m, and the blur grows with the distance from it in *   1/z, as a lens's circle of confusion does: near people blur most, far ones a little less, a *   band in the middle stays sharp. The people are stamped from 14 sheets, one per depth band, *   each already at its size and blur (figure.ts). * - Highlights: each of three slots (green, red, blue) holds one person in the focal band, *   painted with its gradient, cross-fading over 600 ms when the slot moves to someone else, and *   tied by thin lines to the other two and to two people in grey. */
figure.ts
// Copyright (c) 2026 Bruno Delorence. MIT License./* * One walking person, drawn procedurally, and the sprite sheets the crowd is stamped from. * * - The figure is a side-view silhouette one `height` tall, its feet at the origin, facing +x: a *   round head, a torso that leans a little forward, and two legs and two arms as thick round-capped *   strokes, each a thigh and a shin (an upper arm and a forearm). The legs swing ±0.42 rad on *   opposite phases, the knee folding while the leg travels forward; the arms swing ±0.36 rad *   against the legs; the body bobs 1.2% of its height twice a cycle. * - A sheet is FRAMES frames of one stride plus a standing pose, at one size and one blur. The *   crowd keeps a sheet per depth band, so every stamp is already the right size and softness and a *   frame costs one drawImage per person; nothing is blurred while it plays. * - The blur is the canvas filter where the browser has it; elsewhere a ring of faint offset copies *   stands in for it. *//** Frames in one stride; the sheet's last frame, at this index, is the standing pose. */export const FRAMES = 12;export const STANDING = FRAMES;export type Sprite = {  canvas: HTMLCanvasElement;  /** The feet, in the sprite's px. */
glyphs.tsx
// Copyright (c) 2026 Bruno Delorence. MIT License./* * The hero's glyphs, drawn for it: the logo mark (four dots, three close and one stepping away, * as a person leaving a group to meet someone), and the crowd's controls, pause, play and shuffle. * All in currentColor, decorative: the controls carry their own names. */type Glyph = { className?: string };export function Mark({ className }: Glyph) {  return (    <svg className={className} viewBox="0 0 24 24" aria-hidden="true" focusable="false">      <circle cx="5" cy="5" r="2.6" fill="currentColor" />      <circle cx="12" cy="5" r="2.6" fill="currentColor" />      <circle cx="5" cy="12" r="2.6" fill="currentColor" />      <circle cx="18.5" cy="18.5" r="2.6" fill="currentColor" />    </svg>  );}export function Pause({ className }: Glyph) {  return (    <svg className={className} viewBox="0 0 16 16" aria-hidden="true" focusable="false">
demo-pointer.tsx
// Copyright (c) 2026 Bruno Delorence. MIT License.'use client';import type { CSSProperties, Ref } from 'react';/* * The demo's pointer, and the steps that move it. A demo is a script of awaited steps: wait, or * glide the pointer somewhere. Stopping the demo (the reader takes over, or it scrolls away) ends * the step in progress at once: its promise rejects, which ends the script right there, and the * pointer fades out. * * Each glide is a curved flight played by the Web Animations API, so nothing runs frame by frame. * The points of the flight are handed to whoever wants to move along with it (nothing here uses * them yet). The arrow and the hand are HTML boxes * that swap by their visibility: a change of style inside an SVG would lay the SVG out again. */export type Point = { x: number; y: number };/** A glide's path and timing, for an animation that plays along with it. */export type Flight = { points: Point[]; timing: KeyframeAnimationOptions };export type Demo = {
use-autoplay.ts
// Copyright (c) 2026 Bruno Delorence. MIT License.'use client';import { useCallback, useEffect, useRef, useState } from 'react';/* * When a demo may play on its own: while part of it is on screen and the tab is visible, never * under reduced motion, and never again once the reader has used it: `take()` hands it to the * reader for good (until the component mounts again), so it can't come back on its own. */export function useAutoplay<T extends HTMLElement>() {  const ref = useRef<T>(null);  const [visible, setVisible] = useState(false);  const [reduced, setReduced] = useState(true);  const [taken, setTaken] = useState(false);  useEffect(() => {    const element = ref.current;    if (!element) return;    let onScreen = false;    const update = () => setVisible(onScreen && !document.hidden);    const observer = new IntersectionObserver(      ([entry]) => {