Dhileep Kumar GM

Warp Tunnel

Component 18

About

A React UI component that renders an infinite, color-shifting warp-speed tunnel using WebGL2 and GLSL shaders.

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

Code

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

Usage.tsx

import WarpTunnel from "@/components/ui/warp-tunnel";

const settings = {
  segments: 8,
  speed: 1.5,
};

export default function DemoOne(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen">
      {/* Warp Tunnel Shader */}
      <WarpTunnel segments={s.segments} speed={s.speed} />

      {/* Overlay content */}
      <div className="absolute inset-0 z-10 flex flex-col justify-center items-center text-center pointer-events-none px-4">
        <h1 className="text-6xl font-black">Warp Tunnel</h1>
        <p className="mt-4 text-lg text-muted-foreground max-w-xl">
          A mesmerizing, kaleidoscopic warp‐tunnel rendered in GLSL/WebGL2,
          fully customizable via props and theme‐aware through CSS variables.
        </p>
      </div>
    </div>
  );
}

More by Dhileep Kumar GM

View all
  • Aether Flow Hero

    Aether Flow Hero

    1.9K
  • Woven Light Hero

    Woven Light Hero

    1.5K
  • AnomalousMatterHero

    AnomalousMatterHero

    1.5K
  • PulseFit hero

    PulseFit hero

    918
  • Mountain Scene

    Mountain Scene

    858
  • HolographicCard

    HolographicCard

    818
  • 3D Animation

    3D Animation

    758
  • Cybernetic Bento Grid

    Cybernetic Bento Grid

    556