ReactHive

Reel Reveal

Heroes

About

A hero with a small duotone showreel in its corner. Click it and the reel morphs out to fill the screen, its corners arriving on their own beats, then plays with sound; close it and it morphs back into the card.

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

Code

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

Usage.tsx

"use client";

import { ReelReveal } from "@/components/ui/reel-reveal";

const settings = {
  tint: "#fd3229",
  duration: 1.1
};

/* The demo's Google Fonts. In a Next.js app, use next/font/google instead. */
if (typeof document !== "undefined" && !document.getElementById("reel-reveal-fonts")) {
  const style = document.createElement("style");
  style.id = "reel-reveal-fonts";
  style.textContent = "@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Geist:wght@100..900&display=swap'); .rh-caveat { font-family: 'Caveat', cursive; } .rh-geist { font-family: 'Geist', sans-serif; }";
  document.head.appendChild(style);
}

const type = { className: "rh-geist", style: { fontFamily: "'Geist', sans-serif" } };
/** A hand for the note pointing at the reel. */
const hand = { className: "rh-caveat", style: { fontFamily: "'Caveat', cursive" } };

/* One load sequence: the headline's lines rise out of their masks in turn, then the intro, then the reel
   card arrives. Nothing moves again until someone acts. */
const motion = `
@keyframes nl-rise { from { transform: translateY(105%); } }
@keyframes nl-fade { from { opacity: 0; transform: translateY(14px); } }
@keyframes nl-card { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes nl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nl-note { from { opacity: 0; transform: rotate(-7deg) translateY(6px); } }
.nl-line { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.nl-line > span { display: block; animation: nl-rise 1.1s cubic-bezier(0.19, 1, 0.22, 1) both; }
.nl-fade { animation: nl-fade 1s cubic-bezier(0.19, 1, 0.22, 1) both; }
.nl-stage button[aria-haspopup] { animation: nl-card 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.75s both; }
/* Last, once the card is in: the note, then its arrow drawing itself into the card's corner. */
.nl-note { transform: rotate(-7deg); animation: nl-note 0.8s cubic-bezier(0.19, 1, 0.22, 1) 1.5s both; }
.nl-arrow path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: nl-draw 0.9s cubic-bezier(0.65, 0, 0.35, 1) 1.75s both; }
.nl-arrow path + path { animation-delay: 2.5s; animation-duration: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .nl-line > span, .nl-fade, .nl-stage button[aria-haspopup], .nl-note, .nl-arrow path { animation: none; }
}
`;

const ease = "ease-[cubic-bezier(0.19,1,0.22,1)]";
const focus = "focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#f2f2f2]";

/** A sample studio hero, with the showreel in its corner. */
function DemoContent(props: Partial<typeof settings> = {}) {
  const v = { ...settings, ...props };
  return (
    // --card-w sizes the reel card and places the note beside it: full width on phones, 60% on tablets,
    // a quarter of the screen on wider ones.
    <main className={`${type.className} nl-stage bg-[#111111] text-[#f2f2f2] antialiased selection:bg-[#3a3a3c] [--card-w:90vw] sm:[--card-w:60vw] lg:[--card-w:clamp(18rem,27vw,30rem)]`}>
      <style>{motion}</style>
      <ReelReveal
        className="h-svh min-h-[46rem] lg:min-h-[36rem]"
        cardClassName="right-[5vw] bottom-[5vh] w-(--card-w)"
        src="https://cdn.21st.dev/assets/mirror/85/852e8bb3b411f1bd55a2454207ff5d6d2c6324342ff4ec168eee03a17f428b1f.mp4"
        poster="https://cdn.21st.dev/assets/mirror/e9/e9c06d025ebc1e1c8fee96ea5052fc114b173f8af9710dce01b555bc55139da8.jpg"
        alt="Northlight's showreel: dancers, crowds and colour in motion"
        tint={String(v.tint)}
        backdrop="#000000"
        duration={Number(v.duration)}
      >
        <div className="flex h-full flex-col px-[5vw] pt-5 pb-[5vh] md:pt-7">
          <header className="nl-fade flex items-center justify-between gap-6 text-[15px]">
            <a href="#" className={`flex items-center gap-2.5 rounded-full text-[17px] font-medium tracking-[-0.02em] ${focus}`}>
              <svg viewBox="0 0 24 24" aria-hidden="true" className="size-5">
                <circle cx="12" cy="12" r="11" fill="#e02b21" />
                <path d="M7 15.5 12 6l5 9.5" fill="none" stroke="#111111" strokeWidth="2.2" strokeLinejoin="round" />
              </svg>
              Northlight
            </a>
            <nav aria-label="Main" className="hidden items-center gap-9 sm:flex">
              {["Work", "Studio", "Journal"].map((item) => (
                <a
                  key={item}
                  href="#"
                  className={`rounded-sm bg-[linear-gradient(currentColor,currentColor)] bg-[length:0%_1px] bg-bottom bg-no-repeat pb-0.5 text-[#f2f2f2]/70 transition-[background-size,color] duration-500 hover:bg-[length:100%_1px] hover:text-[#f2f2f2] ${ease} ${focus}`}
                >
                  {item}
                </a>
              ))}
            </nav>
            <a
              href="#"
              className={`rounded-full bg-[#e02b21] px-6 py-2.5 text-[17px] leading-[1.3] font-medium tracking-[-0.01em] text-white transition-[background-color,color,scale] duration-500 hover:bg-[#f2f2f2] hover:text-[#111111] active:scale-[0.97] ${ease} ${focus}`}
            >
              Start a Project
            </a>
          </header>

          <h1
            aria-label="We turn ideas into worlds you can move through."
            className="mt-[9vh] text-[clamp(2.9rem,12.5vw,8rem)] leading-[0.95] font-medium tracking-[-0.045em] lg:mt-[13vh] lg:text-[clamp(3.6rem,7.1vw,8.25rem)]"
          >
            {/* Wide screens: two set lines, the second stepped in toward the reel. Narrower ones: it wraps as it falls. */}
            <span aria-hidden="true" className="nl-line block lg:hidden">
              <span>We turn ideas into worlds you can move through.</span>
            </span>
            <span aria-hidden="true" className="nl-line hidden lg:block">
              <span>We turn ideas into worlds</span>
            </span>
            <span aria-hidden="true" className="nl-line hidden lg:block lg:pl-[16vw]">
              <span style={{ animationDelay: "0.12s" }}>you can move through.</span>
            </span>
          </h1>

          {/* Under the headline on phones and tablets (the reel takes the foot of the screen); bottom left on
              wider screens, across from the reel. */}
          <div className="mt-8 max-w-[26rem] lg:mt-auto">
            <p className="nl-fade text-[16px] leading-[1.5] text-[#a1a1a6] lg:text-[17px]" style={{ animationDelay: "0.45s" }}>
              A motion and real-time 3D studio in Oslo. We make launch films, interactive sites and installations for brands people remember.
            </p>
            <a
              href="#"
              className={`nl-fade mt-6 inline-flex items-center gap-2 rounded-sm text-[16px] font-normal bg-[linear-gradient(currentColor,currentColor)] bg-[length:100%_1px] bg-bottom bg-no-repeat pb-1 transition-[background-size,color] duration-500 hover:bg-[length:0%_1px] hover:text-[#ff6a5f] ${ease} ${focus}`}
              style={{ animationDelay: "0.6s" }}
            >
              See Selected Work
            </a>
          </div>
        </div>

        {/* A hand-written note pointing at the reel. Wide screens: in the open space left of the card, its
            arrow curling right into it. Phones and tablets: just above the card's right side, arrow dropping in. */}
        <div
          aria-hidden="true"
          className="pointer-events-none absolute z-30 hidden flex-col items-end lg:flex"
          style={{ right: "calc(5vw + var(--card-w) + 1.25rem)", bottom: "calc(5vh + var(--card-w) * 0.5625 * 0.42)" }}
        >
          <span className={`${hand.className} nl-note block text-[30px] leading-none whitespace-nowrap text-[#4aa3ff]`}>Click here</span>
          <svg viewBox="0 0 80 44" className="nl-arrow mt-1 mr-[-1.25rem] h-[44px] w-[80px] overflow-visible text-[#4aa3ff]" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round">
            <path pathLength="1" d="M10 4 C 8 22, 24 36, 46 34 C 58 33, 66 30, 74 26" />
            <path pathLength="1" d="M64 20 L 75 26 L 65 33" />
          </svg>
        </div>
        <div
          aria-hidden="true"
          className="pointer-events-none absolute z-30 flex items-end gap-1 lg:hidden"
          style={{ right: "calc(5vw + 1.5rem)", bottom: "calc(5vh + var(--card-w) * 0.5625 + 0.4rem)" }}
        >
          <span className={`${hand.className} nl-note mb-6 block text-[28px] leading-none whitespace-nowrap text-[#4aa3ff]`}>Click here</span>
          <svg viewBox="0 0 64 60" className="nl-arrow h-[52px] w-[56px] overflow-visible text-[#4aa3ff]" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round">
            <path pathLength="1" d="M4 14 C 22 2, 44 6, 48 22 C 51 33, 46 42, 52 54" />
            <path pathLength="1" d="M44 47 L 52 55 L 58 45" />
          </svg>
        </div>
      </ReelReveal>
    </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: "#111111" }}>
      <DemoContent {...props} />
    </div>
  );
}

More by ReactHive

View all
  • Card Deal

    Card Deal

    289
  • Arc Gallery

    Arc Gallery

    194
  • Fluid Type

    Fluid Type

    174
  • Step Stack

    Step Stack

    120
  • Iris Scroll

    Iris Scroll

    95
  • Card Pack

    Card Pack

    73
  • Word Drum

    Word Drum

    58
  • Colour Wash Slider

    Colour Wash Slider

    49

More in Heroes

View all
  • Agency Hero Section

    Agency Hero Section

    1.1K
  • Real Estate 3D Hero

    Real Estate 3D Hero

    89
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.8K
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    36
  • App Integration Celestial Hero

    App Integration Celestial Hero

    17
  • Chroma Sense Hero

    Chroma Sense Hero

    23
  • Hero

    Hero

    1.4K

Explore more

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