Components
This React component creates a visually appealing text effect where the word 'Marketing' is encircled by an animated path. The animation is achieved using the motion library from Framer Motion. The component renders a heading containing the text 'Scale your Marketing with Simple AI Tools'. The word 'Marketing' is positioned within a dynamically generated SVG circle. This circle is drawn using a path element that is animated to create a reveal effect. The animation starts when the component is in the user's viewport.
The component utilizes several key features:
motion.path component, which is crucial for creating the animated SVG path. The initial, whileInView, and transition props control the animation's starting state, triggering condition, and timing, respectively.d attribute specifies the path's coordinates, creating a smooth circular shape.max-w-2xl class ensures that the text is responsive and adapts to different screen sizes. The grid and place-content-center classes help with centering the content.This component is ideal for situations where you want to draw attention to a specific word or phrase on a webpage, adding a touch of dynamism and visual interest. It could be used in a marketing landing page, a product showcase, or any other scenario where a stylish presentation is needed. The animation is subtle yet effective, enhancing user engagement.
Loading preview...
import { DrawCircleText } from "@/components/ui/animated-circle-text-effect";
export default function DemoOne() {
return <DrawCircleText />;
}