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
Typing Animation
A customizable typing animation component with support for multiple words, cursor styles, and animation controls.
motion-svruned
|
Installation
pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/typing-animation.json
Install dependencies
Install the required packages for this component:
pnpm add motion-sv runed
Copy the Source Code
Copy and paste the following code into your project:
typing-animation.svelte
index.ts
Folder Structure
Folder Structure
Examples
Cursor Blinking
With blinking cursor (default) - watch during pause
|Without blinking cursor - static during pause
|Cursor Style
Line cursor (default)
|Block cursor (VSCode style)
▌Underscore cursor
_Single Play
|
Custom Speed
|
Multiple Words with Emojis
|
Start On View
Props
TypingAnimation
A versatile typing animation component with support for single text, multiple words, cursor customization, and animation controls.
| Name | Type | Default | Description |
|---|---|---|---|
content | string | undefined | Single text string to type (use this OR words) |
words | string[] | undefined | Array of words to cycle through (use this OR content) |
class | string | "" | Additional CSS classes to apply |
duration | number | 100 | Default duration for typing speed (ms per character) |
typeSpeed | number | duration | Speed for typing characters (ms per character) |
deleteSpeed | number | typeSpeed / 2 | Speed for deleting characters (ms per character) |
delay | number | 0 | Initial delay before animation starts (ms) |
pauseDelay | number | 1000 | Delay between typing and deleting (ms) |
loop | boolean | false | Whether to loop the animation continuously |
startOnView | boolean | true | Start animation when element enters viewport |
showCursor | boolean | true | Show the typing cursor |
blinkCursor | boolean | true | Make the cursor blink during pause |
cursorStyle | 'line' | 'block' | 'underscore' | 'line' | Style of the cursor ('line': |, 'block': ▌, 'underscore': _) |