About
An animated heading text that draws its outline like a pen stroke and then fills from below like rising liquid, with a hover-to-drain interaction.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Stroke Draw Type to your project and fits it to your theme.
Code
How Stroke Draw Type is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { StrokeDrawType } from "@/components/ui/stroke-draw-type";
export default function StrokeDrawTypeDemo() {
return (
<div className="flex min-h-[420px] w-full items-center justify-center bg-background px-6">
<StrokeDrawType
text="Signature"
trigger="in-view"
strokeWidth={1.6}
duration={1.5}
stagger={0.11}
drainOnHover
/>
</div>
);
}
















