Skip to content
The Design StackUpgrade1 free

How it behaves

Exactly what the prompt builds — every timing and easing is specified, so the result matches the demo.

Explore (the canvas)

  • The component fills the element it is in (by default the whole screen height, 100dvh, and the full width) on a #f4f4f4 background. The page itself must not scroll.
  • The canvas is one tile that repeats in all directions: 6 columns × 3 rows of cells, each 500 × 520, with every second column half a cell lower. Each cell holds one picture, scaled to fit within 330 × 400 and then to a random 58–100% of that, and placed at a random spot inside its cell with a 40px gutter. The randomness is seeded, so the layout is the same on every visit and no two pictures ever overlap, even where tiles meet.
  • The whole canvas scales with its container: min(width / 1512, height / 982), never below 0.6 and never above 1.
  • Drag with a mouse, finger or pen and the view follows with an ease: each frame it covers 8.5% of the distance to where the pointer is. On release, a flick carries on for 140 × its release speed. The wheel and trackpad pan in both directions. Double-click, or press Home or R, to bring the view back to the start.
  • Pictures are in black and white (grayscale(1)) and ease to full colour over 450ms on hover.
  • The caption appears under a card's bottom-left corner only after the pointer has rested on it for 500ms (fades in over 260ms, rising 4px): the project name in a serif at 18px and the services line in a sans at 12px, grey. It is always drawn at its true pixel size, whatever the card's scale, and it disappears at once as soon as you drag or the view is moving.
  • On first load every picture is fetched and decoded before anything shows, then the canvas fades in over 320ms.

Cursor (mouse and trackpad only)

  • The normal cursor is hidden over the canvas. A white 22px circle (mix-blend-mode: difference) follows the pointer, catching up 22% per frame, and stretches along its direction of travel with speed (up to 55%, squashing the other way). It grows to 2.4× over a card, shrinks to 0.45× over the switch's buttons and to 0.8× while pressed.
  • Behind the pictures, a loose cloud of faint grey 11px squares is left along the pointer's path: the faster the pointer moves, the wider and denser the cloud (a spread of 26px growing to 95px). Each square fades out over 0.9 to 1.6 seconds.
  • Parallax: the whole canvas drifts opposite to the pointer, up to 36px sideways and 26px up or down, following at 5% per frame. It pauses while the view changes, so the cards fly from and land on exactly the right places.

Explore / List switch

  • A frosted bar 48px above the bottom edge, centred: rgba(244,244,244,.9) with a 10px blur, 5px radius, 4px padding, holding two buttons (32px tall, 22px side padding, uppercase serif, 15px, letter-spacing 0.08em). "Explore" has a 2 × 2 squares icon before the word and "List" has a four-bars icon after it. The active one has an #efefef background. Both are real buttons, disabled until everything has loaded.

List

  • Press List: every card flies from where it is on screen into one horizontal row through the middle of the screen. All cards take the same height, 30% of the container's height (kept between 150px and 280px), keeping their shapes and in the order of the data, 14px apart. They leave one after another, 45ms apart, and each flight takes 1000ms on cubic-bezier(0.76, 0, 0.18, 1). The rest of the canvas fades out and the row's extra copies fade in while the cards are landing.
  • The row loops forever sideways. Drag, the wheel, trackpad and the arrow keys scroll it (up and down movement scrolls it sideways too), with the same trailing ease and flick. Hover colour and captions work as in the canvas. Double-click, Home or R bring the row back to the start.
  • Press Explore: the same in reverse. The last card leaves first and each flies back to its nearest place on the canvas, then the canvas fades in over 420ms.
  • Drag, wheel and keys do nothing while cards are flying. Touch screens: no blob, no pixel trail and no parallax. There is nothing to hover, so the pictures stay in colour. Touch-drag and flick work as with a mouse, and the switch is as above. Keyboard: the canvas can be focused with Tab (a thin outline shows). Arrow keys pan it by 80px, Home or R bring it back, and the two switch buttons are real buttons. Reduced motion: the view follows the pointer with no easing and no flick, there is no parallax, no pixel trail and no blob stretching, and the flights and fades are near-instant.

More prompts