ReactHive

Kaleido Tunnel

Backgrounds 11

About

An endless flight down a turning tunnel of square frames, its walls scattered with rings, hearts and blobs and lit through arched windows, rolling as it goes and smeared by motion blur at speed. Move the pointer to steer, scroll to change speed, and press and hold to warp.

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

Code

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

Usage.tsx

"use client";

import { KaleidoTunnel } from "@/components/ui/kaleido-tunnel";

const settings = {
  tint: "#2027f2",
  speed: 0.9,
  twist: 9,
  blur: 1
};

function DemoContent(props: Partial<typeof settings> = {}) {
  const v = { ...settings, ...props };
  return (
    <main className="bg-black text-white">
      <KaleidoTunnel className="h-svh min-h-[34rem]" tint={String(v.tint)} speed={Number(v.speed)} twist={Number(v.twist)} blur={Number(v.blur)}>
        {/* A soft shade under the words, so they read over the white decals. */}
        <div aria-hidden="true" className="pointer-events-none absolute inset-0 bg-[radial-gradient(120%_70%_at_0%_100%,rgba(8,10,90,0.55),transparent_60%)]" />
        <div className="pointer-events-none relative flex h-full flex-col justify-end p-[5vw] [text-shadow:0_2px_24px_rgba(0,0,40,0.35)]">
          <h1 className="max-w-[12ch] text-[clamp(3rem,9vw,8.5rem)] leading-[0.9] font-medium tracking-[-0.045em]">Further In, Every Frame.</h1>
          <p className="mt-6 max-w-[24rem] text-[16px] leading-[24px] text-white/85">Move to steer. Scroll to change speed. Press and hold anywhere to warp.</p>
        </div>
      </KaleidoTunnel>
    </main>
  );
}

/** The demo in its own colours, filling the frame. */
export default function Demo(props: Partial<typeof settings> = {}) {
  return (
    <div className="min-h-svh w-full" style={{ background: "#2027f2" }}>
      <DemoContent {...props} />
    </div>
  );
}

More by ReactHive

View all
  • Card Deal

    Card Deal

    252
  • Arc Gallery

    Arc Gallery

    165
  • Fluid Type

    Fluid Type

    152
  • Step Stack

    Step Stack

    108
  • Iris Scroll

    Iris Scroll

    77
  • Card Pack

    Card Pack

    68
  • Word Drum

    Word Drum

    50
  • Colour Wash Slider

    Colour Wash Slider

    39

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    975
  • Dark Gradient Background

    Dark Gradient Background

    169
  • Background snippets

    Background snippets

    25
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    643
  • Background Components

    Background Components

    254
  • Honey Ember Background

    Honey Ember Background

    104
  • Gradient Backgrounds

    Gradient Backgrounds

    28
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    263

Explore more

Part of ReactHive UI — browse the full library on 21st.dev.