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

Technical Prompt for React Horizontal Scroll Sections with Framer Motion

Customize the variables below to instantly engineer your prompt.

Required Variables

react-horizontal-scroll-framer-motion-component.txt
Act as a Principal UI/UX Interaction Developer. Design a complex, highly optimized React component that programmatically transforms standard vertical page scrolling into a seamless horizontal movement for a gallery of [SECTION_DATA]. The architecture must utilize a `position: sticky` outer container possessing a dynamic height of [STICKY_CONTAINER_HEIGHT] (e.g., `300vh`) to artificially elongate the scroll track. Utilize Framer Motion's `useTransform` to precisely map the `scrollYProgress` of a `useRef` target from `0` to `1` into a horizontal CSS `translateX` percentage (from `0%` to `-100%`). Implement [TRANSITION_STYLE] (e.g., scale-up or fade-in) for the intersection entry animations of individual cards within the horizontal track. Embed a synchronized progress bar fixed at the bottom. Implement specific touch-action CSS properties to ensure the scroll experience remains fluid and accessible on mobile devices.

Example Text Output

"The AI will output a modular React component that uses a sticky wrapper to pin the viewport while translating a horizontal inner container based on the user's vertical scroll progress."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Technical Prompt for React Horizontal Scroll Sections with Framer Motion" prompt used for?

The AI will output a modular React component that uses a sticky wrapper to pin the viewport while translating a horizontal inner container based on the user's vertical 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.