Blenra
Optimized for: Gemini / ChatGPT / Claude

Technical Prompt for React Horizontal Scroll Sections with Framer Motion

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [SECTION_DATA]
  • [TRANSITION_STYLE]
  • [STICKY_CONTAINER_HEIGHT]
react-horizontal-scroll-framer-motion-component.txt
Design a complex React component that transforms vertical page scrolling into horizontal movement for a gallery of [SECTION_DATA]. Utilize a sticky container with a dynamic height of [STICKY_CONTAINER_HEIGHT] to facilitate the scroll length. Use Framer Motion's useTransform to map the 'scrollYProgress' of a target ref to an 'x' percentage. Implement [TRANSITION_STYLE] for entry animations of individual items within the horizontal track. Include a progress bar at the bottom that synchronizes with the horizontal displacement. Optimize for mobile by adding touch-swipe fallbacks or ensuring the scroll experience remains fluid.

Example 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."