Ali Imam

Mechanical Waves

Backgrounds 127

About

Mechanical Waves with props

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

Code

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

Usage.tsx

"use client";

import { MechanicalWaves } from "@/components/ui/mechanical-waves";

const settings = {
  speed: 1,
  amplitude: 0,
  peakHeight: 50,
  width: 1000,
  height: 1000,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen flex items-center justify-center overflow-hidden text-foreground">
      <MechanicalWaves
        speed={s.speed}
        amplitude={s.amplitude}
        peakHeight={s.peakHeight}
        width={s.width}
        height={s.height}
        foregroundColor="currentColor"
      />
    </div>
  );
}

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
  • Glowing Shadow

    Glowing Shadow

    1.5K

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    811
  • Gradient Backgrounds

    Gradient Backgrounds

    25
  • Jade Sky

    Jade Sky

    85
  • LivingOrigami bg

    LivingOrigami bg

    135
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    536
  • Background snippets

    Background snippets

    14
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    221
  • Gradient Blur Bg

    Gradient Blur Bg

    18