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

Expert AI Prompt for Scroll-Linked SVG Path Drawing in React

Customize the variables below to instantly engineer your prompt.

Required Variables

scroll-linked-svg-path-drawing-framer-motion.txt
You are a creative technologist. Develop a React component that uses Framer Motion to animate an SVG path drawing effect linked directly to the user's scroll position. Use [SVG_PATH_DATA] as the target shape. Map the pathLength property of the motion.path element to the scroll progress using useTransform. The animation should begin at [OFFSET_START] of the viewport and complete at the end of the container. Use [STRIKE_COLOR] for the stroke. Ensure the path is responsive and recalculates its length on window resize using a custom hook. Integrate Intersection Observer to ensure the animation only runs when the SVG is in view to save GPU resources.

Example Text Output

"The AI will provide a React component that dynamically renders an SVG where the stroke-dasharray and stroke-dashoffset are controlled by the scroll position, creating a 'drawing' effect as the user moves down the page."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Expert AI Prompt for Scroll-Linked SVG Path Drawing in React" prompt used for?

The AI will provide a React component that dynamically renders an SVG where the stroke-dasharray and stroke-dashoffset are controlled by the scroll position, creating a 'drawing' effect as the user moves down the page.

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.