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

Advanced AI Prompt for Dynamic Background Color Shift

Customize the variables below to instantly engineer your prompt.

Required Variables

gsap-dynamic-bg-color-shift.txt
Develop a GSAP ScrollTrigger routine that changes the background color of the [BODY_TARGET] as different [SECTION_SELECTORS] enter the viewport. Use the colors provided in [COLOR_ARRAY]. The transition should be smooth and trigger exactly when the center of the section hits the center of the viewport. Use the 'onEnter' and 'onEnterBack' callbacks to ensure the colors update correctly in both scroll directions. Optimize by using CSS variables.

Example Text Output

"The AI generates a loop that assigns ScrollTriggers to each section, updating a global CSS --bg-color variable for smooth interpolation."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Dynamic Background Color Shift" prompt used for?

The AI generates a loop that assigns ScrollTriggers to each section, updating a global CSS --bg-color variable for smooth interpolation.

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.