257

Magnifier Lens

The cursor becomes a round magnifier that enlarges the content inside the lens

CursorHover & clickUI interactionCSSJS + CSS

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

The cursor becomes a round magnifying glass with a border and shadow, showing the content under it magnified about 2.2× inside the lens; as it moves, the lens content pans in sync, making small text or product details easy to see. (JS + CSS: put a copy of the content inside the lens with the same width and height as the original and transform-origin:0 0, transform = translate(radius − cursorX × zoom, radius − cursorY × zoom) scale(zoom); the lens border-radius:50%, overflow:hidden, pointer-events:none)

When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.

How to use it

  1. Tap “Copy AI prompt”.
  2. Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
  3. The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.

More cursor effects

346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts

Browse all effects →