Summer pricing is live: save $50 on Starwind Pro lifetime access.

Water Surface

Pro

A realistic animated water background with layered waves, shimmering highlights, click ripples, and controls for scale, shine, motion, and water colors.

Theme

Upgrade to Pro
Loading code...

Starwind Dependencies

Sign in to view code and copy install commands.

Sign in

This component requires Starwind Pro.

Get lifetime access to all premium components, updates, and priority support.

Upgrade to Pro

Failed to load code. Please try again.

Code

Usage
<ShaderWaterSurface
  surfaceDrift={0.2}
  waveScale={2.8}
  surfaceShine={0.85}
  deepWaterColor="#061724"
  shallowWaterColor="#1F859E"
  sunGlintColor="#F5D184"
/>

Props

proptypedefaultdescription
surfaceDriftnumber0.2Surface drift multiplier.
waveScalenumber2.8Surface wave scale.
surfaceShinenumber0.85Overall highlight and ripple contrast.
opacitynumber0.96Sets the overall opacity of the shader background wrapper.
maxDprnumber1.25Caps device pixel ratio for sharper output without runaway GPU cost.
maxFps30 | 45 | 6060Caps the animation frame rate for performance-sensitive pages.
deepWaterColorstring"#061724"Deep water color as a CSS color or normalized RGB.
shallowWaterColorstring"#1F859E"Shallow water color as a CSS color or normalized RGB.
sunGlintColorstring"#F5D184"Sun glint color as a CSS color or normalized RGB.