Skip to content
Backgrounds Fancy Stable

FallingStarsBg

.md

Canvas-based 3D starfield with perspective projection, motion trails, and glow

Available for Svelte 5, React, and Vue 3.

Preview

Installation

pnpm add fancy-ui-svelte
import { FallingStarsBg } from "fancy-ui-svelte";

Usage

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

<FallingStarsBg />

Examples

Basic Usage

Custom Color

Star Count

Control number of stars.

Props

PropTypeDefaultDescription
color string"currentColor"Star color: a hex string, or currentColor to follow the text colour
count number200Number of stars