Slide Text

sliding text animation with smooth staggered motion and loop control.

IInnnnoovvaattiioonn

Installation

npx shadcn@latest add https://scrollxui.dev/registry/slide-text.json 

Usage

import { SlideText } from "@/components/ui/slide-text";
<SlideText
      text="Innovation"
      staggerDelay={0.03}
      staggerDuration={0.5}
      pauseDuration={2}
      className="text-4xl font-semibold"
    />

API Reference

Slide Text

sliding text animation with smooth staggered motion and loop control.

Props

PropertyTypeDefaultDescription
textstringrequired
Text content animated per character with vertical slide motion.
staggerDelaynumber0.025
Delay between consecutive character animations.
staggerDurationnumber0.4
Duration of each character’s slide transition.
pauseDurationnumber1.5
Pause before switching animation direction or restarting.
classNamestring''
Additional CSS classes applied to the text wrapper.

Built withby Ahdeetai.