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

Expert AI Prompt for LayoutID Morphing on Scroll Trigger

Customize the variables below to instantly engineer your prompt.

Required Variables

layoutid-morphing-scroll-trigger-framer-motion.txt
Act as a Framer Motion specialist. Design a React component that uses the layoutId prop to morph between two different component states ([START_ELEMENT] and [END_ELEMENT]) when a specific [TRIGGER_THRESHOLD] of scroll is reached. Use an Intersection Observer or Framer Motion's onViewportEnter to toggle a state variable that triggers the shared layout animation. Ensure the transition is seamless across different DOM hierarchies. Include logic to handle the 'reverse' morphing when the user scrolls back up. Document how to handle potential layout shifts and overflow issues during the morph.

Example Text Output

"The AI will provide code that transforms a small thumbnail into a full-width header or card as the user reaches a specific scroll depth, using Framer Motion's layout projection."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Expert AI Prompt for LayoutID Morphing on Scroll Trigger" prompt used for?

The AI will provide code that transforms a small thumbnail into a full-width header or card as the user reaches a specific scroll depth, using Framer Motion's layout projection.

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.