~/siddharthsiddharth_meena
PortfolioAboutComponents
Back to Components

Animated Text Slider

A smooth vertical text carousel that cycles through multiple text items with elegant slide and fade transitions, perfect for role titles or taglines.

Preview

Installation

Install the component using the CLI.

npx shadcn@latest add https://siddz.com/r/animated-text-slider.json

Usage

Import the component:

import { AnimatedTextSlider } from "@/components/animated-text-slider"

Use it in your code:

<AnimatedTextSlider 
  texts={["Developer", "Designer", "Creator"]} 
/>

Props

PropertyTypeDefaultDescription
texts*string[]["Text 1", "Text 2", "Text 3"]Array of text strings to cycle through in the animation.
intervalnumber3500Time in milliseconds between text transitions.
classNamestring""Additional CSS classes to apply to the container.

© 2025 Siddharth Meena.

PortfolioAboutComponents
X (Twitter)
Email
GitHub
Software Engineer
Full-Stack Developer
UI/UX Enthusiast
Problem Solver
Creative Thinker