Rotating Text

Animated text rotation with stagger effects and customizable transitions.

Configuring your account...

Please wait while we prepare everything for you

Usage

import RotatingText from '@/components/bynanaui/rotating-text'

<RotatingText
    texts={["Hello World", "Beautiful Animation", "Rotating Text"]}
    rotationInterval={2000}
    staggerDuration={0.1}
    className="text-3xl font-bold"
/>

Props

PropTypeDefaultDescription
textsstring[]-Array of texts to rotate
rotationIntervalnumber2000Interval between rotations
staggerDurationnumber0.1Stagger duration
classNamestring-Additional CSS classes