Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA paged carousel of large squircle photo cards with depth: neighbors peek in scaled down, each photo slides against its card for parallax, and the blurred backdrop crossfades to the current photo. Cards drag and fling with momentum, rubber-band at the ends and snap on a spring, while the glass page indicator stretches the active dot into a pill that flows liquidly between pages, fills with autoplay progress and can be scrubbed by dragging across the dots. Arrow keys, Home, End and focusable dots work from the keyboard; autoplay pauses on hover, offscreen and in hidden tabs, and reduced motion stops it.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { PageDotsCarousel } from "@/components/hyperblur-pro/page-dots-carousel"
<PageDotsCarousel />
<PageDotsCarousel
slides={[{ image: "/a.jpg", title: "First" }, { image: "/b.jpg", title: "Second" }]}
autoplay={false}
onChange={(i) => setIndex(i)}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| slides | { image, eyebrow?, title, text?, cta? }[] | 7 Unsplash travel slides | Cards of the carousel. |
| index / defaultIndex / onChange | number | 0 | Controlled or uncontrolled current slide. |
| onSlideAction | (index: number) => void | undefined | Called by the call to action button of a card. |
| autoplay | boolean | true | Advance on a timer, shown as a fill inside the active pill. |
| interval | number | 5200 | Milliseconds per slide when autoplaying. |
| parallax | number | 1 | Strength of the photo and text parallax inside cards. |
| heading | string | "Trips worth the detour" | Title above the carousel and its accessible name. |
| accent | string | "#ffffff" | Focus ring color of the dots. |
| refraction | number | 1 | Lens strength of the glass indicator, arrows and chips. |
Source code is included in Pro and above