Cards Fancy Stable
GlareCard
Holographic trading card effect with mouse-tracking glare and rainbow foil
Available for Svelte 5, React, and Vue 3.
Preview
svelte
<script lang="ts">
import { GlareCard } from 'fancy-ui-svelte';
</script>
<GlareCard />Installation
pnpm add fancy-ui-svelte
import { GlareCard } from "fancy-ui-svelte";
Usage
svelte
<script lang="ts">
import { GlareCard } from 'fancy-ui-svelte';
</script>
<GlareCard />Examples
Basic Usage
svelte
<script lang="ts">
import { GlareCard } from "$lib/fancy-ui/glare-card";
</script>
<GlareCard>
<div class="flex size-full flex-col items-center justify-center p-6 text-white">
<h3 class="text-2xl font-bold">Holographic</h3>
<p class="mt-2 text-sm text-slate-300">Move your mouse to see the effect</p>
</div>
</GlareCard>Multiple Cards
svelte
<script lang="ts">
import { GlareCard } from "$lib/fancy-ui/glare-card";
</script>
<div class="flex flex-wrap justify-center gap-8">
{#each ["Fire", "Water", "Earth"] as element, i}
<GlareCard>
<div class="flex size-full flex-col items-center justify-center p-6 text-white">
<span class="mb-2 text-4xl">{["🔥", "💧", "🌍"][i]}</span>
<h3 class="text-xl font-bold">{element}</h3>
<p class="mt-1 text-xs text-slate-400">Elemental Card</p>
</div>
</GlareCard>
{/each}
</div>Slots
| Slot | Description |
|---|---|
children | Card content rendered inside the holographic surface |
Links
Related components
AppleCardCarousel
Horizontal card carousel where the focused card expands into a spring-animated full-screen view
Cards Fancy
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