Cards
JS behaviour
Ring carousel
Cards ride a 3D ring: drag with inertia and a snap to the nearest card, arrow keys and buttons — the front title morphs into the next through a goo filter.
Real scenarios
The component as it is used in a product — not a specimen grid.
The studio’s picked work
Drag the ring and let go — it snaps to the nearest card. The arrow keys and the side buttons work too, and the front card’s index rides a Livewire property.
Fajr Banking App
Front card on the server (wire:model, sent with the next request):
Fajr Banking App · index 0
Case studies that link out
Three quieter cards with custom sizes — each one a real anchor to its case study.
Cutting first response by half
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| items | array | [] | Keys: title, subtitle, cover (a CSS background), image, alt, href, tone; the front card is the lit one. |
| index / wire:model | int | 0 | The front card’s index; wire:model keeps it in step with a Livewire property and sends it with the next request. |
| label | string | null | The carousel’s accessible name (aria-label). |
| cardWidth / cardHeight | string | null | Resizes the cards with any CSS length. |
Snippet
<x-nx::ring-carousel label="نمونهکارها" :items="$projects" wire:model="state.ring" />