Light Rays

A component with animated light rays which shine down from above.

motion-sv
Ambient glow

Light Rays

Drop this component into any container and it will fill the space with softly animated light rays shining from above.

Installation

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

Usage

<script lang="ts">	import { LightRays } from "#lib/components/magic/light-rays/index.js";</script>
<div class="relative h-80 overflow-hidden">	<LightRays /></div>

Props

Light Rays

A component for Light Rays.

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply
countnumber7Number of light rays to render
colorstring"rgba(160, 210, 255, 0.2)"Color of the light rays
blurnumber36Blur of the light rays
speednumber14Speed of the light rays
lengthstring"70vh"Length of the light rays
stylestring""Additional CSS styles to apply