Rotating Text(020)

Choreographed flipper cycling through multiple phrases with character-level staggering.

ScrollHover
Requires:motion
Loading…

Installation

$npx kibo add rotating-text

Usage

1import { RotatingText } from "@/components/kibo/rotating-text/component";
2
3export default function Example() {
4 return (
5 <RotatingText />
6 );
7}

Props Reference

PropTypeDefaultDescription
textsstring[]-Controls the texts for the component animation.
transitionTransition{ type: 'spring', damping: 25, stiffness: 300 }Controls the transition for the component animation.
initialboolean | Target | VariantLabels{ y: '100%', opacity: 0 }Controls the initial for the component animation.
animateboolean | VariantLabels | TargetAndTransition{ y: 0, opacity: 1 }Controls the animate for the component animation.
exitTarget | VariantLabels{ y: '-120%', opacity: 0 }Controls the exit for the component animation.
animatePresenceMode'sync' | 'wait''wait'Controls the animate presence mode for the component animation.
animatePresenceInitialbooleanfalseControls the animate presence initial for the component animation.
rotationIntervalnumber2000Controls the rotation interval for the component animation.
staggerDurationnumber0Controls the stagger duration for the component animation.
staggerFrom'first' | 'last' | 'center' | 'random' | number'first'Controls the stagger from for the component animation.
loopbooleantrueControls the loop for the component animation.
autobooleantrueControls the auto for the component animation.
splitBystring'characters'Controls the split by for the component animation.
onNext(index: number) => void-Controls the on next for the component animation.
mainClassNamestring-Controls the main class name for the component animation.
splitLevelClassNamestring-Controls the split level class name for the component animation.
elementLevelClassNamestring-Controls the element level class name for the component animation.