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

Advanced AI Prompt for Circular Scroll Progress Indicators

Customize the variables below to instantly engineer your prompt.

Required Variables

gsap-circular-scroll-progress-indicator.txt
Act as a Frontend Component Engineer. Develop a ubiquitous, `position: fixed` [FLOAT_ID] UI element that renders a highly polished circular scroll progress bar. Utilizing GSAP ScrollTrigger's global document tracking, map a timeline that directly animates the [SVG_CIRCLE_PATH]'s CSS [STROKE_DASH_OFFSET] property from its absolute maximum mathematical circumference down to exactly `0`, mirroring the user scrolling the entire scrollable height of the `document.body`. Embed an absolutely positioned `<span>` inside the SVG bounding box that dynamically updates its `innerHTML` with the precise, rounded integer percentage of the scroll progress (0% to 100%). Architect the script to be responsive, forcefully injecting a `ScrollTrigger.addEventListener('refresh', ...)` hook to instantly recalculate the SVG circumference and document height whenever the user rotates their mobile device or resizes the browser window.

Example Text Output

"The AI generates a script that calculates the circle circumference and tethers its stroke-dashoffset to the global document scroll progress."

More Web Components Prompts

View all →

Frequently Asked Questions

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

The AI generates a script that calculates the circle circumference and tethers its stroke-dashoffset to the global document scroll progress.

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.