Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Framer Motion Multi-Step Scroll Timelines

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

Required Variables

  • [STEPS_JSON]
  • [TIMELINE_DIRECTION]
  • [INTERPOLATION_POINTS]
framer-motion-multi-step-scroll-timeline.txt
Engineer a complex scroll-driven timeline component in React. Using a single useScroll hook, define a sequence of animations based on the [STEPS_JSON] configuration. Each step should trigger different properties (opacity, scale, x, y) at specific [INTERPOLATION_POINTS] (e.g., 0, 0.2, 0.5, 0.8, 1). The layout should be [TIMELINE_DIRECTION]. Create a robust logic to handle multiple elements animating in and out of the viewport. Use useTransform with an array of input and output ranges to coordinate complex movement. Provide a clear separation between the data-driven config and the rendering logic.

Example Output

"The AI will create a 'storytelling' component where different UI elements fade in, move, and disappear at precise percentages of the total scroll progress."