Ali Imam

Wave

Heroes 152

About

Wave component with props for width, height, speed, tiles, pointer control, and DPR.

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

Code

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

Usage.tsx

import { Wave } from "@/components/ui/wave";

const settings = {
  speed: 0.5,
  tiles: 1,
};

export default function DemoOne(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <main className="flex relative justify-center items-center">
      <Wave className="absolute" speed={s.speed} tiles={s.tiles} />
      <h1 className="text-center absolute mt-8 text-5xl font-semibold">
        Gradient Wave
      </h1>
    </main>
  );
}

Dependencies

More by Ali Imam

View all
  • Liquid Glass Button

    Liquid Glass Button

    6.7K
  • Shader Animation

    Shader Animation

    3.7K
  • WebGL Shader

    WebGL Shader

    2.6K
  • Shader Lines

    Shader Lines

    2.3K
  • Shiny Button

    Shiny Button

    2.2K
  • GLSL Hills

    GLSL Hills

    2.1K
  • Canvas

    Canvas

    1.8K
  • Gallery

    Gallery

    1.5K

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • SaaS Template

    SaaS Template

    2.5K
  • Hero

    Hero

    1.3K
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    294
  • Editorial Collage Hero

    Editorial Collage Hero

    453
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    959
  • HeroSectionWithGradient

    HeroSectionWithGradient

    343
  • Glass Fold

    Glass Fold

    261