Hero Templates

Tidal

A dusk ocean under flat, left-aligned copy: noise-warped swells with wind ripple, sunlit crests, a sun path and breaking foam, raymarched in one bounded pass.

Install

bun add ogl

Then copy 2 files into your project:

  • components/registry/tidal/tidal.tsx
  • hooks/use-animation-loop.ts

Props

PropTypeDefaultDescription
waterColorstring (hex)"#0a1e33"Deep water under the swells.
skyColorstring (hex)"#2a1636"Dusk overhead, falling to ember at the horizon.
sunColorstring (hex)"#ffab5e"Sun disc and its path on the water.
foamColorstring (hex)"#dcecf5"Crest sparkle.
swellHeightnumber1Amplitude of the rolling swells.
choppinessnumber1How sharply the crests peak — 0 is glass.
speednumber1How fast the sea rolls.
sunHeightnumber0.12Sun elevation above the horizon.
quality"20" | "32" | "48""32"March step count — more steps resolve finer crests toward the horizon.
parallaxbooleantrueThe horizon leans toward the pointer, easing back on leave.

What It Demonstrates

Loop
An animation that repeats, a set number of times or infinitely.
Float
A gentle, continuous up-and-down drift that makes a static element feel alive and weightless.
Hover effect
Visual change when the cursor moves over an element.
Idle animation
Subtle motion that plays while an element is just sitting there, waiting to be interacted with.
Hardware acceleration
Animating transform and opacity lets the GPU keep motion smooth.

Related Components

Appears In