Ali Imam

WebGL Animation

Shaders

About

he component will include the canvas, shaders, and WebGL logic, adapted to work

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

Code

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

Usage.tsx

import { WebGLAnimation } from "@/components/ui/web-gl-animation";
import { Button } from "@/components/ui/button"
import { LiquidCard } from "@/components/ui/liquid-glass-card"

export default function DemoOne() {
  return (
    <div className="relative flex h-full w-full flex-col items-center justify-center overflow-hidden">
    <div className="px-6 absolute">
      <LiquidCard className="w-full max-w-4xl border border-black/20 p-0 shadow-none">
        <div className="p-1">
          <main className="relative overflow-hidden rounded-md border border-white/20 bg-black/60 py-10 shadow-2xl backdrop-blur-md">
            <h1 className="mb-3 grid px-6 text-center text-5xl font-light tracking-tighter text-white md:text-[clamp(2rem,8vw,7rem)]">
              Design is not just what it looks like and feels like.<span className="font-extrabold text-[#fff200]"> Design is how it works.</span>
            </h1>

             <p className="text-center">
             Steve Jobs
             </p>
            
          </main>
        </div>
      </LiquidCard>
    </div>
      <WebGLAnimation
      animationSpeed={0.2}   
      /> 
    </div>
  );
}

Dependencies

More by Ali Imam

View all
  • Liquid Glass Button

    Liquid Glass Button

    7.2K
  • Shader Animation

    Shader Animation

    3.9K
  • WebGL Shader

    WebGL Shader

    2.7K
  • Shiny Button

    Shiny Button

    2.4K
  • Shader Lines

    Shader Lines

    2.4K
  • GLSL Hills

    GLSL Hills

    2.2K
  • Canvas

    Canvas

    1.8K
  • Gallery

    Gallery

    1.6K

More in Shaders

View all
  • Glass Fold

    Glass Fold

    549
  • Paper design shader Background

    Paper design shader Background

    711
  • Wave

    Wave

    726
  • Radial Shader

    Radial Shader

    151
  • Phosphor 30

    Phosphor 30

    316
  • Old Television Shader

    Old Television Shader

    416
  • Chroma Sense Hero

    Chroma Sense Hero

    11
  • Animated Shader Background

    Animated Shader Background

    2.1K