Skip to content
Backgrounds02 / 118

Shallows

An underwater hero background. The water is a real fluid simulation your cursor pushes around, caustic light dances across the floor, a giant word is refracted by the moving water, and the soft shadows of a flock of birds glide over it, scattering from your cursor.

WebGL2 fluid simZero dependencies60fpsLive tweaksReduced-motion safe
Drift
Stir the waterClick for a burstChase the birds

Tweak

LIVE

Content

Colour

#08336b
#020816
#8cdbff
#c7bda3

Water

1.00
1.00
1.00
1.00

Flock

6
1.00

Props

13 props
  • textstring
    The word on the sea floor. Uses the component's font; also exposed to screen readers.default "Drift"
  • waterstring
    Shallow water colour, near the surface.default "#08336b"
  • deepstring
    Deep water colour, at the bottom and edges.default "#020816"
  • lightstring
    Colour of the caustic light and sun shafts.default "#8cdbff"
  • textColorstring
    Colour of the word.default "#c7bda3"
  • causticsnumber
    Brightness of the caustics.default 1
  • refractionnumber
    How strongly the moving water bends the floor.default 1
  • swirlnumber
    How much the water swirls after you stir it.default 1
  • speednumber
    Animation speed multiplier.default 1
  • birdsnumber
    Birds per flock, 0 to 8.default 6
  • birdSizenumber
    Size multiplier for the bird shadows.default 1
  • childrenReactNode
    Foreground content, drawn above the water.
  • classNamestring
    Size it, e.g. h-[80vh] w-full.