Circular Text
Circular text animations create a circular text effect that continuously rotates. This engaging animation can be used to draw attention to important content or add visual interest to your design.
Installation
npm install framer-motionpnpm install framer-motionyarn add framer-motionbun add framer-motionUsage
import { CircularText } from "@/components/mvpblocks/text-animations/circular-text";
export default function MyComponent() {
return (
<div className="flex items-center justify-center h-screen">
<CircularText
text="Circular Text Animation • "
spinDuration={20}
onHover="speedUp"
className="text-white"
/>
</div>
);
}Pro
Prop
Type
Features
- 🎯 Smooth Animation: Continuous rotation with customizable speed
- 🎨 Hover Effects: Multiple hover behaviors (slowDown, speedUp, pause, goBonkers)
- 🎪 Customizable: Easy to style with CSS classes
- 📱 Responsive: Works well on different screen sizes
- ⚡ Performance: Optimized with framer-motion
Examples
Speed Up on Hover
<CircularText
text="Speed Up Effect • "
spinDuration={15}
onHover="speedUp"
/>Pause on Hover
<CircularText
text="Pause on Hover • "
spinDuration={25}
onHover="pause"
/>Go Bonkers on Hover
<CircularText
text="Go Bonkers! • "
spinDuration={30}
onHover="goBonkers"
/>Blur In Text
Text emerges from a soft blur into crystal clarity. Perfect for hero headlines and section reveals that demand attention with an elegant, cinematic feel.
Fade In Up Text
Elegant text entrance animation that fades in while floating from any direction. Perfect for hero headlines, section titles, and page transitions.
