Cards Fancy Stable

DirectionAwareHover

Image card with overlay that slides in from the mouse entry direction

Preview

Installation

pnpm add fancy-ui-svelte
import { DirectionAwareHover } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { DirectionAwareHover } from 'fancy-ui-svelte';
</script>

<DirectionAwareHover />

Examples

Basic Usage

Multiple Cards

Props

PropTypeDefaultDescription
imageUrl *string-URL of the background image
imageAlt string"image"Alt text for the image
childrenClass string""CSS classes for the overlay content wrapper
imageClass string""CSS classes for the image element

Slots

SlotDescription
childrenContent shown in the overlay when hovered