Cursor Highlight
Text is revealed on scroll with pointer, gradient, and border effects.
Loading...
Installation
npx shadcn@latest add @scrollxui/cursor-highlight Usage
import { CursorHighlight } from '@/components/ui/cursor-highlight';<CursorHighlight
className='text-2xl sm:text-3xl md:text-4xl font-bold'
gradient='from-pink-500 via-red-500 to-yellow-500'
showPointer={true}
pointerClassName='text-pink-500'
direction='right'
rectangle='bg-pink-200 dark:bg-green-950 border-blue dark:border-white/20 rounded-lg p-4'
>
<h1>Premium</h1>
</CursorHighlight>Examples
Default
Loading...
Gradient
Loading...
Pointer
Loading...
Selection
Loading...
Top
Loading...
Botttom
Loading...
Left
Loading...
Right
Loading...
API Reference
Cursor Highlight
Text is revealed on scroll with pointer, gradient, and border effects.