Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Radix UI Dialog Interactivity with Framer Motion
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[ENTRY_ANIMATION] - ✦
[EXIT_ANIMATION] - ✦
[LAYOUT_ID]
radix-dialog-framer-motion-animation.txt
Integrate Radix UI Dialog with Framer Motion for high-fidelity [ENTRY_ANIMATION] and [EXIT_ANIMATION]. Use 'presence' logic to ensure exit animations play before Radix unmounts the component. Solve the 'Scroll Lock' conflict between Radix and Framer Motion. Specifically, show how to use [LAYOUT_ID] to animate a trigger element into the modal content. Maintain 100% accessibility, ensuring that animations do not interfere with focus trapping or screen reader announcements of the modal's presence.
Example Output
"The AI creates a 'MotionDialog' that wraps Radix's Content in a motion.div, using AnimatePresence to orchestrate seamless, accessible entry/exit transitions."