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

Advanced AI Prompt for Horizontal Case Study Scroll

Customize the variables below to instantly engineer your prompt.

Required Variables

gsap-horizontal-case-study-scroll.txt
Act as a Senior Creative Frontend Developer. Architect a highly robust GSAP ScrollTrigger script that hijacks the standard vertical document scroll and seamlessly translates it into a horizontal timeline for a premium case study gallery. Target the [CONTAINER_SELECTOR] wrapper to be pinned tightly to the viewport. Ensure the core animation maps an `xPercent` translation (to ensure flawless CSS responsiveness) by dynamically calculating the absolute combined bounding widths of the [PROJECT_ITEMS] array. Inject a `scrub: [SCROLL_STRENGTH]` variable to guarantee buttery-smooth interpolation between mouse-wheel ticks. Crucially, optimize the architecture for mobile-first deployment by integrating `gsap.matchMedia()` to explicitly kill and tear down the horizontal ScrollTrigger instance if the viewport width drops below 768px, reverting to a native vertical stack.

Example Text Output

"The AI generates a robust JavaScript module featuring ScrollTrigger.matchMedia() for responsive control and a pin-spacer implementation for the horizontal gallery."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Horizontal Case Study Scroll" prompt used for?

The AI generates a robust JavaScript module featuring ScrollTrigger.matchMedia() for responsive control and a pin-spacer implementation for the horizontal gallery.

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.