Glass Loupe
imageProA refracting glass lens that glides after the pointer and magnifies the image, with rim, highlights and a soft shadow.
Introductory price until 31 December 2026. €79 after that.
Preview
Live demo. The theme switches the demo itself.
Code
The code is locked
Glass Loupe is part of Manniche UI Pro. A key unlocks the source of all 66 effects.
Buy · €49€49 · Introductory price until 31 December 2026. €79 after that.
- One-off payment
- One developer
- Sign in and create your key straight away
- No VAT (§ 19 UStG)
Have a key? Get the code with the CLI or MCP.
The key lives in MANNICHE_PRO_KEY, never in your code or a URL. How to set it up
npx shadcn@latest add @manniche-pro/glass-loupeclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
GlassLoupeProps
| Prop | Type | Default | What it does |
|---|---|---|---|
src required | string | – | The image to inspect. |
alt required | string | – | What the image shows, for screen readers. |
zoom | number | 2.5 | Magnification, from 1 to 10. |
size | number | 180 | Lens diameter in CSS pixels. |
rimColor | string | '#f4efe4' | Colour of the lens rim. Any CSS colour. |
rimWidth | number | 2.5 | Rim thickness in CSS pixels; 0 hides it. |
refraction | number | 0.6 | 0 to 1: how much the glass bends and splits colour towards its edge. 0 is a flat, perfect lens. |
fit | 'cover' | 'contain' | 'cover' | Crop the image to fill the frame, or fit all of it inside. |
focusY | number | 0.5 | Where the image sits vertically when it is cropped or letterboxed, from 0 (top) to 1 (bottom). |
className | string | – | – |
style | CSSProperties | – | – |
A11y
Keyboard
The wrapper takes focus with Tab and shows the lens at the centre. Arrow keys move the lens, Shift makes the step larger, plus and minus change the zoom, and Escape hides the lens. Leaving the wrapper hides it.
Screen reader
The wrapper is a group named from alt followed by a short key hint, with the role description magnifier. The inner image has an empty alt, so the description is read once.
Reduced motion
Under reduced motion the lens is not eased and snaps to its position.
Other
Without WebGL or cross-origin pixel access a CSS lens is used.