Effects Fancy Stable

Meteors

.md

Meteor shower in depth: seeded meteors with glowing heads and tapering tails fall diagonally in parallax (near ones larger, brighter and faster), fading in and burning out, a few flaring before they go

Preview

Installation

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

Usage

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

<Meteors />

Examples

Basic Usage

Custom Count

Control number of meteors.

Card Example

Options

Colour, direction, speed and seed.

Props

PropTypeDefaultDescription
count number20Number of meteors to render
angle number215Direction of travel in degrees (215 = down and to the right)
speed number1Speed multiplier
color string-Head and tail colour; defaults to pale blue-white on dark pages and slate on light ones
seed number1Seed for the field; same seed, same shower on server and client
class string-Additional CSS classes on each meteor