Field guide

How this site was built

Halcyon Atoll is a fictional barefoot-luxury resort, designed to feel like an exhale. The brief was cinematic and calm, so the whole site is built from code-generated visuals: gradient seascapes, canvas light, and SVG, which stay crisp at any size and never break.

The concept

One idea runs through everything: the visitor operates the place rather than watching it. You stir the water with your cursor, drift through four chapters of the island, write and post a real postcard, and compose your own three days. Every interaction is honest state and real physics, not a canned animation.

Four advanced techniques

01

Caustic light on canvas + cursor ripple

The hero draws a field of ~26 drifting radial gradients onto a 2D <canvas> with a 'screen' composite operation, animated by requestAnimationFrame and capped at devicePixelRatio 2. Pointer events feed a second radial glow that eases toward the cursor, so the water responds to you. Under prefers-reduced-motion the canvas stays clear and cursor ripples are disabled.

Canvas 2D API · requestAnimationFrame · pointer events

02

Split-screen scrollytelling with a pinned pane

The image pane is position: sticky while the narrative column scrolls. An IntersectionObserver with a -45% / -45% rootMargin marks the chapter nearest the viewport centre and cross-fades scenes over 1.2s. Each scene runs a Ken Burns scale-and-drift keyframe. On mobile it degrades to a stacked scene above each chapter.

IntersectionObserver · position: sticky · CSS keyframes

03

The postcard composer

A real handwriting font (Caveat) renders your message live as you type. Four SVG stamps, each a miniature of the island, are draggable via pointer events; dropping one records a percentage position and applies a slight rotation. 'Send' triggers a postmark that scales and fades in, then the whole card translates and rotates off-screen on an ease-out exhale curve.

SVG · pointer drag · CSS transforms · web fonts

04

A self-drawing SVG itinerary

Choosing experiences builds a timeline whose spine animates via stroke-dasharray / stroke-dashoffset so the line appears to draw itself, while each stop fades in on a staggered delay. Entries sort into Morning / Afternoon / Evening, and the browser print dialog produces a clean printable version.

SVG stroke animation · React state · window.print

The workflow

Built on Lovable. The site was art-directed to a fixed palette (lagoon, sand linen, deep reef navy, sunset coral) and a two-typeface system (Cormorant for the high-contrast serif, Jost for wide-tracked caps labels, Caveat for handwriting). It was then iterated through three structured review passes: first the design system and layout, then the interactive mechanisms, then accessibility, responsiveness, and performance polish.

Replicating the approach

  1. 1. Set tokens first. Define colour, type, spacing, easing as CSS variables before any component.
  2. 2. Draw, don't source. Reach for canvas and SVG before photography, code visuals never 404.
  3. 3. Make it operable. Give the visitor one real mechanism to control, with genuine state.
  4. 4. Respect the body. Honour prefers-reduced-motion, keep animations to transform/opacity, and verify 390px to 1920px.