Cards Fancy Stable
AppleCardCarousel
Horizontal card carousel where the focused card expands into a spring-animated full-screen view
Available for Svelte 5, React, and Vue 3.
Preview
svelte
<script lang="ts">
import { AppleCardCarousel } from "fancy-ui-svelte";
import type { AppleCardData } from "fancy-ui-svelte";
const cards: AppleCardData[] = [
{
category: "Nature",
title: "Misty Mountains",
src: "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&auto=format&fit=crop&q=60",
description:
"A breathtaking view of misty mountains at dawn, where layers of fog weave between ancient peaks.",
},
{
category: "Architecture",
title: "Brutalist Forms",
src: "https://images.unsplash.com/photo-1486325212027-8081e485255e?w=800&auto=format&fit=crop&q=60",
description: "Raw concrete and bold geometry define this brutalist landmark.",
},
{
category: "Ocean",
title: "Deep Blue",
src: "https://images.unsplash.com/photo-1505118380757-91f5f5632de0?w=800&auto=format&fit=crop&q=60",
description: "Beneath the surface, an entire world exists in silence.",
},
{
category: "Urban",
title: "City Lights",
src: "https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=800&auto=format&fit=crop&q=60",
description: "The city never sleeps. From dusk to dawn, millions of lives intersect.",
},
{
category: "Desert",
title: "Sand & Silence",
src: "https://images.unsplash.com/photo-1509316785289-025f5b846b35?w=800&auto=format&fit=crop&q=60",
description:
"The desert teaches patience. Endless dunes shift imperceptibly under a relentless sun.",
},
];
</script>
<div class="overflow-hidden py-8">
<AppleCardCarousel sound {cards} />
</div>Installation
pnpm add fancy-ui-svelte
import { AppleCardCarousel } from "fancy-ui-svelte";
Usage
svelte
<script lang="ts">
import { AppleCardCarousel } from "fancy-ui-svelte";
import type { AppleCardData } from "fancy-ui-svelte";
const cards: AppleCardData[] = [
{
category: "Nature",
title: "Misty Mountains",
src: "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&auto=format&fit=crop&q=60",
description:
"A breathtaking view of misty mountains at dawn, where layers of fog weave between ancient peaks.",
},
{
category: "Architecture",
title: "Brutalist Forms",
src: "https://images.unsplash.com/photo-1486325212027-8081e485255e?w=800&auto=format&fit=crop&q=60",
description: "Raw concrete and bold geometry define this brutalist landmark.",
},
{
category: "Ocean",
title: "Deep Blue",
src: "https://images.unsplash.com/photo-1505118380757-91f5f5632de0?w=800&auto=format&fit=crop&q=60",
description: "Beneath the surface, an entire world exists in silence.",
},
{
category: "Urban",
title: "City Lights",
src: "https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=800&auto=format&fit=crop&q=60",
description: "The city never sleeps. From dusk to dawn, millions of lives intersect.",
},
{
category: "Desert",
title: "Sand & Silence",
src: "https://images.unsplash.com/photo-1509316785289-025f5b846b35?w=800&auto=format&fit=crop&q=60",
description:
"The desert teaches patience. Endless dunes shift imperceptibly under a relentless sun.",
},
];
</script>
<div class="overflow-hidden py-8">
<AppleCardCarousel sound {cards} />
</div>Examples
Basic Usage
svelte
<script lang="ts">
import { AppleCardCarousel } from "$lib/fancy-ui/apple-card-carousel";
import type { AppleCardData } from "$lib/fancy-ui/apple-card-carousel";
const cards: AppleCardData[] = [
{
category: "Nature",
title: "Misty Mountains",
src: "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&auto=format&fit=crop&q=60",
description:
"A breathtaking view of misty mountains at dawn, where layers of fog weave between ancient peaks.",
},
{
category: "Architecture",
title: "Brutalist Forms",
src: "https://images.unsplash.com/photo-1486325212027-8081e485255e?w=800&auto=format&fit=crop&q=60",
description: "Raw concrete and bold geometry define this brutalist landmark.",
},
{
category: "Ocean",
title: "Deep Blue",
src: "https://images.unsplash.com/photo-1505118380757-91f5f5632de0?w=800&auto=format&fit=crop&q=60",
description: "Beneath the surface, an entire world exists in silence.",
},
{
category: "Urban",
title: "City Lights",
src: "https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=800&auto=format&fit=crop&q=60",
description: "The city never sleeps. From dusk to dawn, millions of lives intersect.",
},
{
category: "Desert",
title: "Sand & Silence",
src: "https://images.unsplash.com/photo-1509316785289-025f5b846b35?w=800&auto=format&fit=crop&q=60",
description:
"The desert teaches patience. Endless dunes shift imperceptibly under a relentless sun.",
},
];
</script>
<div class="overflow-hidden py-8">
<AppleCardCarousel sound {cards} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
cards * | AppleCardData[] | - | Cards to display in the carousel |
sound | boolean | false | Plays open when a card expands and close when it is dismissed, once the user has enabled sound |
Links
Related components
BentoGrid
Grid of framed tiles, each a hairline frame around a softly top-lit panel, where an accent glow rises from below on hover while the content lifts and the call to action slides in, and the tiles fade up in a stagger the first time the grid scrolls into view.
Cards Fancy
Book
3D book component with cover, spine, and back face that opens on hover
Cards Fancy
Card3D
Interactive 3D perspective card with depth effects on child elements
Cards Fancy