Default
Controlled index, autoplay, arrows, and line indicators use stable defaults.
Controlled index, autoplay, arrows, and line indicators use stable defaults.
deck owns the centered card and the inactive layers on both sides. Use deck-visible for the visible layer count and deck-blur for optional depth blur instead of maintaining several nearly identical effect types.
Use effect="arc" for a curved fan of portrait cards. The active card stays upright while neighboring cards tilt and fade with distance. The shared navigation, dragging, disabled items and autoplay behavior still apply. Use caption for the active title, description and actions. Example photography comes from Kobra’s public Carousel preview.
orbit uses a continuous phase to move a lower ring of compact cards smoothly around the Y axis. A separate, larger active card sits above the ring and changes with a short GPU-friendly crossfade. orbit-max-visible defaults to 10. When a larger data set would produce an even base window, the orbit takes one additional real card to form an odd ring. Every looping orbit keeps one hidden clone buffer at each edge: the outgoing card moves into the back and fades out while the matching buffer fades in from the other side, preventing a wrap teleport. Only when every real item already fits and no extra item is available does it render a decorative placeholder with a transparent interior and visible outline as that back-side portal. Fewer than four source items are cloned to fill the ring. Set a non-zero orbit-angle to override automatic spacing.
prism arranges three cards around one shared axis. Every face keeps a continuous rotation phase, so side cards move like one rigid prism instead of flipping independently. radius is shared by the viewport and every card; pass false for crisp prism faces.
fade only transitions opacity. Enable motion-blur for a brief directional softening and compare both parameter states in the same example.
The exposed API supports named navigation and explicit playback control. Disabled items are skipped by arrows, autoplay, keyboard, and drag navigation.
[]Boolean | Number | StringStringStringStringNumberNumber{ item: ; index: number }{ item: ; index: number; active: boolean; offset: number }