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

Advanced AI Prompt for Cursor-Driven Depth-of-Field Effect

Customize the variables below to instantly engineer your prompt.

Required Variables

cursor-driven-depth-of-field.txt
Act as a Cinematic UI Visionary. Architect a mathematically complex custom cursor interaction that effectively transforms the mouse pointer into a camera focal point. Every surrounding background DOM node explicitly defined in the [FOCUS_ELEMENTS] array must dynamically apply a CSS `filter: blur()` or `backdrop-filter`. Write an aggressive JS loop that calculates the exact pixel distance between the cursor epicenter and the geometric center of every target element. Map that distance integer to a maximum [BLUR_RADIUS] (e.g., 10px), meaning elements closest to the mouse are razor-sharp, while distant elements melt into extreme bokeh, simulating a 'tilt-shift' macro lens depth of field. Ensure the interpolation utilizes a smooth, non-linear [TRANSITION_CURVE]. Detail the severe CSS paint-time implications of animating filters on multiple elements, and outline how to preserve semantic SEO by ensuring the text remains fully indexable despite the extreme visual distortion.

Example Text Output

"The AI produces a CSS-variable-driven blur system where elements calculate their distance from the mouse to update their blur intensity."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Cursor-Driven Depth-of-Field Effect" prompt used for?

The AI produces a CSS-variable-driven blur system where elements calculate their distance from the mouse to update their blur intensity.

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.