Make your AI a shadcn expert

Annotation Text

Handwritten SVG ink annotations — circle, underline, strikethrough, and arrow — drawn over specific words on view, hover, or mount, with hand-drawn wobble and pathLength stroke reveals for React applications built with Next.js, motion, and Tailwind CSS.

Annotation Text preview

Scroll to load preview

The classic blog-and-tutorial trick of drawing a hand-scrawled mark over a single word, productionised. You pass a sentence and a list of words to annotate, each tagged with a type — circle, underline, squiggly underline strikethrough, or curved arrow — and the component draws each mark over its target word as if pulled live from a notebook. Strokes use SVG paths animated via Motion's pathLength, with a deterministic per-annotation seed driving subtle wobble so two siblings never look identical. Triggers on viewport entry, hover, or mount, with configurable stagger between marks. Built for blog highlights, marketing emphasis, before/after callouts, and product walkthroughs where one word matters more than the rest.

Install with AI

If you've connected the shadcn.io MCP server to Claude Code, Cursor, Windsurf, or any MCP-ready AI editor, prompt your agent to install this text effect for you — no copy-paste, no CLI:

use shadcnio to install the annotation-text text effect into my project

FAQ

Was this page helpful?

Sign in to leave feedback.