A lightweight, GSAP-powered text component with smooth, built-in animations. Ships standalone—no extra load, just clean text motion.
npx argn-ui@latest add text
This command installs GSAP and @gsap/react if missing, and injects a ready-to-use animated text component with prop-based animation controls.
Scramble button adds a quick, glitchy reveal to your button text.
<Text animateInView="scramble" className="text-left">
Gonna Scramble here! Its pure matrix vibe!!
</Text>
Scramble button adds a quick, glitchy reveal to your button text.
<Text animateInView="slide-up">
This is simple slide up...but can you make it better?
</Text>
Scramble button adds a quick, glitchy reveal to your button text.
<Text animateInView="slide-left" wobble>
Now, we are just sliding towards different direction...
</Text>
Scramble button adds a quick, glitchy reveal to your button text.
<Text animateInView="slide-right" wobble wobbleBy="chars" >
And this is right....but wait, something's different.
</Text>
Scramble button adds a quick, glitchy reveal to your button text.
<Text animateInView="slide-up" wobble wobbleBy="words" >
Oh, just words instead of letters.....that's cool!
</Text>
Prop Key | Prop Value | Explanation |
---|---|---|
animateInView? | "scramble" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | Specifies the animation to trigger when the text enters the viewport. |
wobble? | boolean | Toggles the wobble animation effect when the text is in view. |
wobbleBy? | "words" | "chars" | Applies the wobble effect to individual characters or entire words. |