Line Shadow Text

A text component with a moving line shadow.

motion-sv

Ship Fast

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/line-shadow-text.json

Usage

<script lang="ts">	import { LineShadowText } from "#lib/components/magic/line-shadow-text/index.js";</script>
<LineShadowText content="Shadow" />

Examples

Emerald Shadow

Emerald lettering with a lighter mint shadow in dark mode.

Shadow

Orange Shadow

Orange italic lettering with a bright peach shadow in dark mode.

Shadow

Sky Shadow

Sky-blue monospace lettering with an ice-blue shadow in dark mode.

Shadow

Props

Line Shadow Text

A component for Line Shadow Text.

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply
shadowColorstring"black"Color of the shadow
asElementType"span"HTML element to render as
contentstring""Content of the text