ReactHive

35mm Film Reel

Component

About

A roll of film across the page, sprocket holes and all: it flows in from the side, arcs away at both edges, waves and twists, coasts when you throw it and rises toward you under the pointer.

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

Code

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

Usage.tsx

"use client";

import { FilmReel, type ReelItem } from "@/components/ui/film-reel";

const settings = {
  bend: 1,
  drift: 20
};

const shots: [string, string, string, string][] = [
  ["hvar-square", "Hvar, August", "People crossing a stone town square under a bell tower", "Travel, 2025"],
  ["agnes", "Sitters", "A woman in a brown jumper standing in front of the sea", "Portrait, 2026"],
  ["villa-pool", "Villa Mare", "A hotel pool under palm trees, sun loungers along the far side", "Hospitality, 2026"],
  ["coast-morning", "The lifeguard's chair", "A wide empty beach with mountains across the bay", "Landscape, 2024"],
  ["rust-wall", "Concrete summer", "A small car parked in front of a rusted steel wall", "Campaign, 2025"],
  ["ama", "Sitters", "A woman with curly hair in a red patterned top, trees behind her", "Portrait, 2026"],
  ["hvar-beach", "Hvar, August", "A crowded pebble beach with a lifeguard tower", "Travel, 2025"],
  ["villa-terrace", "Villa Mare", "A terrace looking over pine trees to the sea", "Hospitality, 2026"],
  ["lifeguard", "The lifeguard's chair", "A lifeguard chair on a quiet beach in the morning", "Landscape, 2024"],
  ["yellow-cup", "Concrete summer", "A yellow cup casting a long shadow on a stone floor", "Campaign, 2025"],
  ["noon", "Sitters", "A woman with her eyes closed in bright midday light", "Portrait, 2026"],
  ["hvar-lane", "Hvar, August", "A woman walking a dog down a lane between fields", "Travel, 2025"],
  ["shingle", "The lifeguard's chair", "A shingle beach running out to a low island", "Landscape, 2024"],
  ["tomas", "Sitters", "A young man in a red fleece jacket looking away, dry grass behind", "Portrait, 2026"],
  ["island", "Hvar, August", "A small rocky island in a calm green sea", "Travel, 2025"],
  ["grass", "Sitters", "A woman sitting in tall grass by the water", "Portrait, 2026"],
];
const items: ReelItem[] = shots.map(([name, title, alt, caption]) => ({ src: `https://reacthive.dev/library/photos/film/${name}.webp`, title, alt, caption }));

function DemoContent(props: Partial<typeof settings> = {}) {
  const v = { ...settings, ...props };
  return (
    <div className="flex min-h-svh flex-col justify-center overflow-hidden py-[12svh] text-[#121212]">
      <FilmReel items={items} bend={Number(v.bend)} drift={Number(v.drift)} />
      <p className="mt-8 text-center text-[13px] text-black/60">Drag the roll, or swipe sideways.</p>
    </div>
  );
}

/** 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: "#f2f1ee" }}>
      <DemoContent {...props} />
    </div>
  );
}

More by ReactHive

View all
  • Card Deal

    Card Deal

    280
  • Arc Gallery

    Arc Gallery

    190
  • Fluid Type

    Fluid Type

    170
  • Step Stack

    Step Stack

    118
  • Iris Scroll

    Iris Scroll

    92
  • Card Pack

    Card Pack

    72
  • Word Drum

    Word Drum

    56
  • Colour Wash Slider

    Colour Wash Slider

    47

Explore more

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