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

Technical AI Prompt for Scroll-Progress Circular Indicators

Customize the variables below to instantly engineer your prompt.

Required Variables

scroll-progress-circular-indicator-react.txt
Act as a Frontend Component Developer. Design a highly reusable, fixed-position React component that renders a circular scroll progress indicator utilizing Framer Motion. The component must be anchored to the viewport at [POSITION_ANCHOR] (e.g., bottom-right). Construct the visual using a `motion.svg` containing a base track circle and a dynamic `motion.circle` element. Mathematically map the global `scrollYProgress` directly to the `pathLength` attribute of the dynamic circle. Expose [SIZE_PX], [STROKE_WIDTH], and [INDICATOR_COLOR] as strictly typed React props. Embed an absolutely positioned text label in the exact center of the SVG that displays the real-time scroll percentage (0-100%). Utilize `useTransform` to aggressively round the raw progress float into a clean integer for the text display. Ensure the SVG utilizes `vector-effect: non-scaling-stroke` for crisp rendering across all resolutions.

Example Text Output

"The AI will create a fixed UI element that fills a circular border as the user scrolls, providing visual feedback on how much of the page remains."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Technical AI Prompt for Scroll-Progress Circular Indicators" prompt used for?

The AI will create a fixed UI element that fills a circular border as the user scrolls, providing visual feedback on how much of the page remains.

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.