Image Ring
betaImages stood on a slowly turning ring — a circular gallery in CSS 3D that you can drag or turn with the arrow keys.
- Display
- 1 file
- No extra npm packages
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add image-ringNo npm packages are needed beyond what Dowel already requires.
import { ImageRing } from "@/components/ui/image-ring";Default
Tilted
<ImageRing>
| Prop | Type | Default |
|---|---|---|
images (required) | ImageRingItem[] | — |
label (required)Names the gallery. | string | — |
durationSeconds for one full turn on its own; 0 holds it still. Default 40. | number | 40 |
gapSpace between neighbours, in pixels. Default 16. | number | 16 |
itemHeightHeight of each image, in pixels. Default 220. | number | 220 |
itemWidthWidth of each image, in pixels. Default 160. | number | 160 |
tiltTilt of the ring toward the viewer, in degrees. Default -6. | number | -6 |
Plus every attribute of <div>.
A named region holding a list of images, so every alt text is read in order whatever is in front. Focus it and the arrow keys turn it one image at a time. It turns on its own only while nobody is pointing at or focused on it, while it is on screen and the tab is visible, and never under reduced motion — where a manual turn also jumps instead of easing.
8/8
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — passes
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — does not apply
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes