A boutique product showcase where real garments hang from a metal clothes rail, each on a wooden hanger and swinging with real pendulum physics. Photos are cut out live from plain backgrounds with a tiny SVG filter, so only the garment remains, with no frame or rectangle, and its silhouette casts the shadow. Hovering a piece turns it to face you and nudges its neighbours aside, dragging along the rail pushes pieces so they slide, collide and sway, and a tap opens a detail card with the cutout, sizes and an add to bag button. Ships with 4 Unsplash packshots and 4 shaded SVG garments, and plays a gentle push along the rail until the first interaction.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { HangerRailGallery } from "@/components/hyperblur-pro/hanger-rail-gallery"
<HangerRailGallery />
<HangerRailGallery
accent="#2f3a56"
title="New arrivals"
items={[
{ name: "Hooded Parka", price: "$198", src: "https://images.unsplash.com/photo-1624548140150-108c3287f551?w=900&q=80&auto=format&fit=crop", alt: "An orange hooded parka", fit: { ratio: 0.6667, box: [0.22, 0.136, 0.89, 0.816], hang: [0.552, 0.145], width: 176, gain: 1.186 } },
{ name: "Overcoat", price: "$420", kind: "coat", color: "#a8794d" },
{ name: "Studio Tee", price: "$48", kind: "tee", color: "#1f1f1f" }
]}
onAddToBag={(item, size) => console.log(item.name, size)}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| items | { name: string; price: string; src?: string; alt?: string; fit?: { ratio: number; box: [number, number, number, number]; hang: [number, number]; width?: number; drop?: number; gain?: number; clip?: string }; sizes?: string[]; note?: string; kind?: "shirt" | "jacket" | "tee" | "dress" | "hoodie" | "coat"; color?: string }[] | 4 Unsplash packshots and 4 SVG garments | Pieces on the rail. src is a garment photo on a plain white or light grey background (no person, centred, whole piece in frame); its background is removed live. fit describes the photo: ratio is width over height, box the garment bounds as fractions [x0, y0, x1, y1], hang the point as fractions [x, y] that clips to the hanger, width the garment width on a 220 unit hanger (default 186), drop an extra vertical offset, gain a brightness multiplier that turns a flat grey background white (1.186 for #d7d7d7) and clip an optional CSS clip-path to hide neighbouring objects. alt describes the photo. Without src the piece is drawn as an SVG garment from kind and color. |
| accent | string | "#9a5b34" | Color of the eyebrow, prices, bag counter and add to bag button. |
| eyebrow | string | "The autumn rail" | Small label above the title. |
| title | string | "Pieces that hang beautifully." | Section heading. |
| subtitle | string | "Run your hand along the rail..." | Supporting paragraph. |
| autoplay | boolean | true | Sends a soft push along the rail and turns a piece toward the viewer until the first interaction. |
| onAddToBag | (item, size: string) => void | undefined | Called when the add to bag button is pressed. |
Source code is included in Pro and above