Getting Started
Components
- Animated Beam
- Animated Circular Progress Bar
- Animated Gradient Text
- Animated Grid Pattern
- Animated List
- Animated Shiny Text
- Animated Theme Toggler
- Aurora Text
- Avatar Circles
- Bento Grid New
- Blur Fade
- Border Beam
- Cool Mode
- Dither Shader New
- Dock New
- Dot Pattern
- Dotted Map New
- File Tree
- Flickering Grid
- Grid Pattern
- Hero Video Dialog
- Hyper Text New
- Icon Cloud New
- Interactive Hover Button
- Lens New
- Light Rays New
- Line Shadow Text New
- Magic Card New
- Marquee
- Meteors New
- Morphing Text New
- Motion Grid New
- Neon Gradient Card New
- Number Ticker
- Orbiting Circles New
- Pixel Image New
- Pointer New
- Progressive Blur New
- Pulsating Button
- Rainbow Button
- Retro Grid New
- Ripple
- Ripple Button
- Scroll Progress
- Shimmer Button
- Shine Border New
- Smooth Cursor New
- Striped Pattern New
- Text Animate
- Typing Animation
- Video Text
- Warp Background
- Word Rotate Beta
Video Text
A text component with a video background.
runed
OCEAN
Installation
pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/video-text.json
Install dependencies
Install the required packages for this component:
pnpm add runed
Copy the Source Code
Copy and paste the following code into your project:
video-text.svelte
index.ts
Folder Structure
Folder Structure
Props
VideoText
A component for Video Text.
| Name | Type | Default | Description |
|---|---|---|---|
class | string | "" | Additional CSS classes to apply |
src | string | | Source URL of the video |
content | string | | Text content to display |
autoPlay | boolean | true | Whether to autoplay the video |
muted | boolean | true | Whether to mute the video |
loop | boolean | true | Whether to loop the video |
preload | "auto" | "metadata" | "none" | "auto" | Preload behavior of the video |
fontSize | string | number | 20 | Font size of the text |
fontWeight | string | number | "bold" | Font weight of the text |
textAnchor | string | "middle" | Text anchor alignment |
dominantBaseline | string | "middle" | Dominant baseline alignment |
fontFamily | string | "sans-serif" | Font family of the text |