Skip to Content

Marine Snow Scene

Deep-sea underwater background: blue water lit by a bright cone overhead, with particles of marine snow drifting slowly down like floating dust. Particle count is adjustable; reduced motion scatters them at rest.

Installation

pnpm dlx shadcn@latest add @01orbital/marine-snow-scene

Usage

import { MarineSnowScene } from "@/components/scene/marine-snow-scene"

// The copy: change text here, not in the markup.
const COPY = {
  title: "Below the surface",
  body: "Quiet tools for work that takes a long breath.",
} as const

export default function MarineSnowSceneDemo() {
  return (
    <section className="dark relative isolate flex min-h-[28rem] w-full flex-1 flex-col items-center justify-center overflow-hidden bg-scene text-center text-scene-foreground">
      <MarineSnowScene className="absolute inset-0 h-auto" />
      <div className="relative max-w-lg p-6 sm:p-10">
        <h2 className="font-display text-3xl leading-tight sm:text-4xl">
          {COPY.title}
        </h2>
        <p className="mt-4 text-base leading-7 text-scene-foreground/80">
          {COPY.body}
        </p>
      </div>
    </section>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/marine-snow-scene-demo

API reference

Deep blue water lit by a bright cone overhead, with marine snow drifting slowly down. Reduced motion scatters the particles at rest.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

Last updated on