Import
Description
Text component with rotating animated words that cycle through options array. Uses{{data}} placeholder in children string for where animation appears. Built on top of the Text component with fade-in/fade-out animations.
Usage
Props
Extends all props from the Text component with additional animation props:Array of strings to cycle through in the animation. Each string will be displayed in sequence with fade transitions.
Time in milliseconds between word transitions.Default: 2500
Typography variant inherited from Text component.Options:
"d1" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "p2" | "c1" | "c2" | "o1" | "o2" | "b1" | "b2" | "b3"Font weight variant inherited from Text component.Options:
Default:
"regular" (400) | "medium" (500) | "semibold" (600)Default:
"regular"Text content with
{{data}} placeholder where animated words appear. The placeholder will be replaced with cycling options.Custom inline styles to apply to the text element.
Animation Details
The component uses CSS keyframe animations with the following behavior:- 0-20%: Fade in from below (opacity 0 → 1, translateY 10px → 0)
- 20-80%: Display word (opacity 1, translateY 0)
- 80-100%: Fade out upward (opacity 1 → 0, translateY 0 → -10px)
Examples
Hero Section
Feature Highlight
Call to Action
Behavior
- Automatically starts animation on mount
- Cycles through options array infinitely
- Returns to first option after reaching the end
- Cleans up interval timer on unmount
- Recalculates timing if options array length changes
Use Cases
- Hero section taglines with rotating value propositions
- Feature descriptions highlighting multiple capabilities
- Landing page headlines that showcase versatility
- Call-to-action text with multiple audience segments
- Product descriptions emphasizing various use cases
Related Components
- Text - Base typography component