Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#UI

Advanced AI Prompt for Text-Magnifier Cursor with Intersection Observer

Customize the variables below to instantly engineer your prompt.

Required Variables

text-magnifier-cursor-intersection-observer.txt
Act as an Accessibility and Creative UI Developer. Build a highly functional custom cursor that physically acts as a real-time magnifying glass specifically for text-heavy editorial sections. The floating lens DOM element must enforce a [ZOOM_LEVEL] magnification (e.g., `2.5x`) and maintain a strict [LENS_SIZE] diameter framed by a [BORDER_STYLE]. Architect this effect utilizing either a secondary, hidden HTML5 Canvas that redraws the DOM, or a heavily optimized CSS `transform: scale()` paired with `overflow: hidden` on cloned content. Critically, integrate an `IntersectionObserver` to forcefully enable the heavy CPU magnifying calculations *only* when the cursor actually breaches the 'main' article container. Ensure the underlying text nodes remain fully selectable and highlightable, and that the screen reader DOM focus is absolutely uncorrupted by the lens element.

Example Text Output

"The AI generates a sophisticated magnification script that clones text into a masked container or uses a CSS backdrop-filter to simulate a lens."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Text-Magnifier Cursor with Intersection Observer" prompt used for?

The AI generates a sophisticated magnification script that clones text into a masked container or uses a CSS backdrop-filter to simulate a lens.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.