Make your AI a shadcn expert

Highlight Text

Animated marker highlight effect that draws across text on scroll or load for React applications.

Highlight Text preview

Scroll to load preview

Simulate a highlighter pen drawing across your text with this animated highlight effect. The gradient background grows from 0% to 100% width, revealing the highlight mark as if drawn in real-time. Supports scroll-triggered animation via intersection observer—the highlight draws when the text enters the viewport. Customizable timing with Motion's transition system, and one-time or repeat-on-scroll options. Built with Motion for React and CSS background-size animation. Perfect for emphasizing key phrases, creating tutorial-style callouts, or adding a human touch to digital text.

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 highlight-text text effect into my project

FAQ

Was this page helpful?

Sign in to leave feedback.