BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Svelte Animations/backlight

Backlight

svelte-animations/backlight
FreeBlock

An SVG filter wrapper that adds a soft, saturated backlight glow around the content it wraps.

Install it

npx shadcn@latest add https://sv-animations.vercel.app/r/backlight.json

Source

./src/lib/components/magic/backlight/backlight.sveltesv-animations.vercel.app/r/backlight.json
1<script lang="ts">
2 import type { Snippet } from "svelte";
3
4 type Props = {
5 children?: Snippet;
6 class?: string;
7 blur?: number;
8 };
9 let { children, class: className, blur = 10 }: Props = $props();
10 let id = $props.id();
11</script>
12
13<div class={className}>
14 <svg width="0" height="0" aria-hidden="true">
15 <filter {id} y="-50%" x="-50%" width="200%" height="200%">
16 <feGaussianBlur in="SourceGraphic" stdDeviation={blur} result="blurred"
17 ></feGaussianBlur>
18 <feColorMatrix type="saturate" in="blurred" values="4"></feColorMatrix>
19 <feComposite in="SourceGraphic" operator="over"></feComposite>
20 </filter>
21 </svg>
22 <div style="filter: url(#{id})">
23 {@render children?.()}
24 </div>
25</div>

Files it writes

  • ./src/lib/components/magic/backlight/backlight.svelte
  • ./src/lib/components/magic/backlight/index.ts

Facts

Registry
Svelte Animations
Type
registry:block
Access
Free
Files written
2
Licence
MIT
First indexed
2026-08-01
Last confirmed
2 days ago

Go to the source

sv-animations.vercel.app SikandarJODD/animations on GitHub Raw registry item This item as JSON

More from Svelte Animations

All 66 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Beamanimated-beamSvelte AnimationsBlocksFree1 dep · 6 files
Animated Circular Progress Baranimated-circular-progress-barSvelte AnimationsBlocksFreeno deps · 2 files
Animated Gradient Textanimated-gradient-textSvelte AnimationsBlocksFreeno deps · 2 files
Animated Grid Patternanimated-grid-patternSvelte AnimationsBlocksFree1 dep · 2 files
Animated Listanimated-listSvelte AnimationsBlocksFree1 dep · 2 files
Animated Shiny Textanimated-shiny-textSvelte AnimationsBlocksFreeno deps
Animated Theme Toggleranimated-theme-togglerSvelte AnimationsBlocksFreeno deps · 2 files
Arc Timelinearc-timelineSvelte AnimationsBlocksFreeno deps · 3 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex