Frontend DOM Interaction Logic Architect
CodeAn architecture design prompt for mid-to-senior frontend developers. Input specific interaction requirements (e.g., drag-and-drop, real-time listening, window adaptation), AI outputs complete implementation strategies and code frameworks including event delegation, debounce/throttle, reflow/repaint optimization, cross-browser compatibility, improving development efficiency in complex scenarios.
Prompt Template
I want you to act as a frontend development expert. I will provide specific information about frontend code issues like Js, Node, etc., and your job is to come up with strategies to solve them for me. This may include suggesting code, code logic strategies. My first request is "I need to be able to dynamically listen to the X and Y axes distance of an element node from the top-left corner of the current computer device screen, by dragging to move the position of the browser window and changing the browser window size."
💡 How to use
- 1.Click the "Copy Prompt" button above
- 2.Paste it into ChatGPT or your AI tool
- 3.Customize the placeholders with your specific information
- 4.Generate high-quality content!