Component packs › Caret › Magnifier Cursor
Over fine detail the pointer becomes a glass loupe holding a live copy of the content, magnified 2.2 times, gliding after your hand.
Magnifier Cursor is a cursor from Caret, a component pack with 6 cursors: Custom cursors that read what they are over and turn into its tool. Price: $2 for the whole pack.
Built with: live magnified copy, glass rim and lens shade, arrow keys move the loupe.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
html | string | a detailed chart with fine print | Content to inspect (HTML). Default: a detailed chart with fine print. |
zoom | number | 2.2 | Magnification. Default 2.2. |
size | number | 116 | Loupe diameter in px. Default 116. |
height | number | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: a virtual hand moves the loupe every N ms. |
readonly area: HTMLElementdestroy(): voidimport MagnifierCursor from './MagnifierCursor';
<MagnifierCursor />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Custom cursors.