Updated
Spiral Gallery
ProCustomize
Gap-14px
Turns2.25
Speed0.40/s
out
Blur3px
Tilt0°
Hole0%
Fade1%
Card width92px
Installation
ProSpiral Gallery is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/spiral-gallery
Loading your installation…
Usage
import { SpiralGallery } from "@/components/uibrik/spiral-gallery/spiral-gallery";const cards = [ { src: "/registry/spiral-gallery/calla-lilies.webp", alt: "Pink calla lilies" }, { src: "/registry/spiral-gallery/dandelion.webp", alt: "Dandelion clock on black" }, // …3 more];<SpiralGallery gap={-14} turns={2.25} speed={0.4} direction="out" blur={3} tilt={0} hole={0} fade={1} cardWidth={92} cards={cards}/>Where to use Spiral Gallery
Photo showcases
Cards winding outward along a spiral display many images in a hypnotic loop.
Hypnotic heroes
Cards sharpening as they come give the hero depth and motion.
Collection highlights
A spiral seen from above suits product collections and drops.
Props
SpiralGallery- gap
- Type number
- -14
- Space between neighbouring cards along the spiral. Negative overlaps them. More space fits fewer cards.
- turns
- Type number
- 2.25
- How many times the spiral winds round on its way in.
- speed
- Type number
- 0.4
- Cards that flow along the spiral every second.
- direction
- Type "out" | "in"
- "out"
- Which way the cards flow: out from the middle, or in from the rim.
- blur
- Type number
- 3
- Blur of a card at the middle, where it is furthest away.
- tilt
- Type number
- 0
- How far cards lean as they go round.
- hole
- Type number
- 0
- Size of the empty middle, as a share of the rim. Large leaves a thin ring.
- fade
- Type number
- 1
- Share of a card's journey, at the rim end, spent dissolving.
- cardWidth
- Type number
- 92
- Card width at the rim. Height follows at 4:5.
- cards
- Type { src: string; alt: string }[]
- 5 sample cards
- The cards, in order. They repeat to fill the spiral.
- className
- Type string
- –
- Classes for the wrapper.