Introducing Nuvyx UI v1.0.0

Docs
Animated Text

Animated Text

A versatile text animation component that offers multiple animation types.

Cascade

Flicker

Blink

Blink

Expand

Expand

Rise

Rise

Glide

Glide

Elastic

Elastic

Float

Float

Installation

Usage

import { AnimateText } from "@/components/ui/animated-text";
<AnimateText
  text="Modern UI Components"
  type="cascade"
  className="text-2xl font-bold"
  duration={0.5}
  delay={0}
  once={true}
/>

Props

PropTypeDefaultDescription
textstring""The text content to be animated.
typestring"cascade"Animation style to apply to the text. Options: 'cascade', 'flicker', 'blink', 'expand', 'rise', 'glide', 'elastic', 'float'.
classNamestring""Additional CSS classes to apply to the component.
delaynumber0Delay before animation starts in milliseconds.
durationnumber0.5Duration of the animation in seconds.
staggerChildrennumber0.05Time between each character's animation for cascade effects.
oncebooleantrueIf true, animation plays only once when in view.
fontSizestring"2xl"Font size using Tailwind CSS size classes.
fontWeightstring"bold"Font weight using Tailwind CSS weight classes.
colorstring""Text color (uses theme colors if not specified).