Type Animation

Displays an animated typing effect.

Discover New

Installation

npx shadcn@latest add https://scrollx-ui.vercel.app/registry/typeanimation.json 

Usage

import Typeanimation from '@/components/ui/typeanimation';
<Typeanimation
    words={[' possibilities', ' opportunities', ' potential']}
    typingSpeed="slow"
    deletingSpeed="slow"
    pauseDuration={2000}
    className="text-3xl md:text-5xl font-extrabold text-teal-600"
  />

API Reference

Typeanimation

Displays an animated typing effect with gradient text.

Props

PropertyTypeDefaultDescription
wordsstring[]required
Array of words to animate through the typing effect
classNamestring
Optional class name for custom styling
typingSpeednumber | 'slow' | 'normal' | 'fast'50
Typing speed in milliseconds or preset speed values
deletingSpeednumber | 'slow' | 'normal' | 'fast'50
Deleting speed in milliseconds or preset speed values
pauseDurationnumber1000
Delay between each word transition in milliseconds
gradientFromstring'blue-500'
Tailwind color suffix for gradient start color
gradientTostring'purple-600'
Tailwind color suffix for gradient end color

Built withby Ahdeetai.