ReactHive

Lean Strip

Galleries

About

An endless row of pictures hanging from the top of the section, short on the left and tall on the right, so each picture grows as it travels. Scroll, swipe or drag and it slides without end, every tile leaning back the faster it goes.

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

Code

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

Usage.tsx

"use client";

import { LeanStrip, type StripItem } from "@/components/ui/lean-strip";

const settings = {
  speed: 0.7,
  drift: 24,
  lean: 44
};

/* Photos from Unsplash (public/library/photos/CREDITS.md), credited to their photographers. */
const photo = (file: string, title: string, by: string): StripItem => ({ src: `https://reacthive.dev/library/photos/${file}.webp`, title, meta: `Photo by ${by}` });

const items: StripItem[] = [
  photo("orange-chair", "Orange Chair", "Erik Torres"),
  photo("red-sky", "Red Against Sky", "Marjan Taghipour"),
  photo("green-dancer", "Green Room", "Faheem Ahmed"),
  photo("yellow-blossom", "In Bloom", "Taylor Heery"),
  photo("neon-crowd", "Night Street", "Dibakar Roy"),
  photo("magenta-hands", "Peek", "Ivan Aviles"),
  photo("stage-dancers", "Light Trails", "Reilly Cook"),
  photo("pink-blazer", "Pink Blazer", "Gabriel Silvério"),
  photo("yellow-walk", "Saffron", "Jotavé Visual Culture"),
  photo("blue-suit", "Blue Hour", "Anni Peng"),
];

function DemoContent(props: Partial<typeof settings> = {}) {
  const v = { ...settings, ...props };
  return (
    <LeanStrip className="h-svh w-full bg-[#ebebe4] text-[#0b0b0b]" items={items} speed={Number(v.speed)} drift={Number(v.drift)} lean={Number(v.lean)}>
      <div className="flex flex-wrap items-end justify-between gap-6 px-[3vw] pb-[4vh]">
        <h1 className="text-[clamp(4rem,15vw,15rem)] leading-[0.8] font-black tracking-[-0.05em] uppercase">Atelier</h1>
        <p className="max-w-[22rem] pb-[1vw] text-[14px] leading-[20px]">A photo studio for fashion and music. Scroll or drag, and the wall of work slides by without end.</p>
      </div>
    </LeanStrip>
  );
}

/** 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: "#ebebe4" }}>
      <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 Galleries

View all
  • Gallery Component

    Gallery Component

    48
  • Photo Deck

    Photo Deck

    80
  • Scattered About

    Scattered About

    80
  • Product Hover Showcase

    Product Hover Showcase

    121
  • Morph Gallery

    Morph Gallery

    4
  • Image Gallery

    Image Gallery

    97
  • Editorial Collage Hero

    Editorial Collage Hero

    530
  • About 3

    About 3

    459

Explore more

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