Blur Fade

A component that animates content with blur and fade effects, supporting directional movement and intersection observer triggering.

motion-sv

Welcome to BlurFade

Beautiful blur and fade animations for your content

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/blur-fade.json

Usage

<script lang="ts">	import { BlurFade } from "#lib/components/magic/blur-fade/index.js";</script>
<BlurFade>	<h2 class="text-3xl font-bold">Fade into view</h2></BlurFade>

Examples

Basic Usage

Welcome to BlurFade

Beautiful blur and fade animations for your content

Custom Blur Amount

Light Blur

blur="2px"

Medium Blur

blur="6px" (default)

Heavy Blur

blur="12px"

Random stock image 1
Random stock image 2
Random stock image 3
Random stock image 4
Random stock image 5
Random stock image 6
Random stock image 7
Random stock image 8
Random stock image 9

Props

Blur Fade

A component for creating blur and fade animations.

NameTypeDefaultDescription
childrenSnippet-The content to animate
classClassValue""Additional CSS classes to apply
variantVariants-Custom animation variants
durationnumber0.4Animation duration in seconds
delaynumber0Animation delay in seconds
offsetnumber6Movement offset in pixels
direction"up" | "down" | "left" | "right""down"Animation direction
inViewbooleanfalseWhether to trigger animation on intersection
inViewMarginstring"-50px"Intersection observer margin
blurstring"6px"Blur amount