ham7a311

Ripple Tank

Backgrounds 2

About

An interactive WebGL water background driven by a real 2D wave equation, where moving the pointer leaves a wake, clicking drops a stone, and idle raindrops ripple across a lit, tiled floor.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Ripple Tank to your project and fits it to your theme.

Code

How Ripple Tank is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { RippleTank } from "@/components/ui/ripple-tank";

const THEMES: Record<
  string,
  { c: [string, string, string, string]; light: boolean }
> = {
  ink: { c: ["#05070b", "#0f1724", "#2a3a52", "#cfe0ff"], light: false },
  pool: { c: ["#06363d", "#0e6b72", "#7fd1c4", "#f2fffb"], light: false },
  paper: { c: ["#e8e2d6", "#f6f2ea", "#c9bfae", "#ffffff"], light: true },
};

export default function Demo({ variant = "ink" }: { variant?: string }) {
  const t = THEMES[variant] ?? THEMES.ink;
  return (
    <div className="w-full h-screen">
      <RippleTank
        colors={t.c}
        light={t.light}
        className="h-full min-h-full w-full"
      >
        <div className="pointer-events-none flex h-full items-end p-6">
          <p
            className={`font-mono text-[11px] uppercase tracking-[0.16em] ${t.light ? "text-black/45" : "text-white/50"}`}
          >
            Move to stir · click to drop a stone
          </p>
        </div>
      </RippleTank>
    </div>
  );
}

More by ham7a311

View all
  • Route Globe

    Route Globe

    11
  • Wave Mesh

    Wave Mesh

    7
  • Uptime Ribbon

    Uptime Ribbon

    6
  • Glass Carousel

    Glass Carousel

    6
  • Glass Tiles

    Glass Tiles

    6
  • Streak Field Stats

    Streak Field Stats

    5
  • Wind Map

    Wind Map

    4
  • Time Window

    Time Window

    4

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    807
  • Gradient Backgrounds

    Gradient Backgrounds

    25
  • Jade Sky

    Jade Sky

    84
  • Background snippets

    Background snippets

    105
  • Background Components

    Background Components

    20
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    532
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    220
  • CosmicNebula

    CosmicNebula

    8