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

Advanced AI Prompt for SVG Path Drawing on Scroll

Customize the variables below to instantly engineer your prompt.

Required Variables

gsap-svg-path-drawing-scroll.txt
Act as a Vector Animation Specialist. Develop a precision GSAP `DrawSVGPlugin` animation physically tethered to the user's scroll velocity. Target the complex vector strokes identified by [PATH_SELECTOR] living inside the [SVG_ID] container. The timeline must mathematically trace and 'draw' the stroke originating from the [DRAW_DIRECTION] (e.g., `0% 0%` to `0% 100%`) perfectly synchronized as the user scrolls through the vertical height of the parent section. Calculate the path lengths dynamically to ensure cross-browser consistency. Layer a secondary GSAP tween that binds a glowing anchor-point DOM element to the exact leading tip of the drawing path, tracking its X/Y coordinates in real-time. Explicitly include `anticipatePin: 1` within the ScrollTrigger configuration to completely eliminate visual jumping or jitter during the pinning phase on mobile browsers.

Example Text Output

"The AI produces code that calculates path length via DrawSVGPlugin and syncs the drawSVG attribute to the scroll progress bar."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for SVG Path Drawing on Scroll" prompt used for?

The AI produces code that calculates path length via DrawSVGPlugin and syncs the drawSVG attribute to the scroll progress bar.

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.