Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Framer Motion Parallax Hero Components

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

Required Variables

  • [LAYER_COUNT]
  • [SCROLL_SPEED_RATIOS]
  • [IMAGE_ASSETS]
  • [EASING_FUNCTION]
framer-motion-parallax-hero-component-prompt.txt
Act as a Senior Frontend Engineer. Create a high-performance React component using Framer Motion's useScroll and useTransform hooks to implement a multi-layered parallax hero section. The component must support [LAYER_COUNT] distinct layers provided in [IMAGE_ASSETS]. Each layer should move at a unique rate defined by [SCROLL_SPEED_RATIOS]. Implement smooth spring physics using the useSpring hook to prevent jitter. Ensure the component is responsive and uses the 'layout' prop for smooth transitions. Provide the code using TypeScript and document the math behind the transform ranges based on viewport height.

Example Output

"The AI will generate a complete TypeScript React component featuring a parallax container with useScroll integration, mapping scroll offsets to CSS translate values for five different image layers with optimized spring physics."