Top-down stylised ocean. Wave height-field via FBM, foam crests on the sharpest gradients, sun glints across the highest peaks. Pointer pushes the water.
import OceanAbove from '@crazygl/hero-ocean-above';
export default function Hero() {
return (
<OceanAbove
heading="Open water."
amplitude={0.35}
foamAmount={0.5}
sunStrength={1.1}
/>
);
}deepColor / shallowColor, foamColor, sunColor, amplitude, scale, windSpeed, foamAmount, sunStrength.npm install @crazygl/hero-ocean-aboveThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import OceanAbove from '@crazygl/hero-ocean-above';
export default function Landing() {
return (
<OceanAbove />
);
}The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';
import OceanAbove from '@crazygl/hero-ocean-above';
export default function Page() {
return (
<section>
<OceanAbove
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}