Rotate Animation
Rotating text animation with bounce effect
Install the GSAP dependency
npm install gsapAdd the component
npx shadcn@latest add https://glsilk.vercel.app/r/split-text-animation.jsonQuick Start
import { SplitTextAnimation } from "@/components/ui/split-text-animation";
export default function Home() {
return (
<SplitTextAnimation
text="Smooth Rotate In Animation"
animationType="rotate"
duration={0.7}
stagger={0.04}
/>
);
}Examples
Default
<SplitTextAnimation
text="Smooth Rotate In Animation"
animationType="rotate"
duration={0.7}
stagger={0.04}
/>Fast Rotate
<SplitTextAnimation
text="Fast Rotate In Animation"
animationType="rotate"
duration={0.4}
stagger={0.02}
/>Slow Rotate
<SplitTextAnimation
text="Slow Rotate In Animation"
animationType="rotate"
duration={1.2}
stagger={0.06}
/>API Reference
Prop
Type
Credits
- GSAP: greensock.com
- GitHub: greensock/GSAP