Use the Prompt
Add Your Brief
Add your context below. It will be included with the prompt when you copy or download.
Create an HTML/CSS/JavaScript interaction study with explicit start, active and completed states and a readable prefers-reduced-motion fallback for [PROJECT] and [AUDIENCE]. The task is: Navigation Transition.
Required content and structure
Design a menu opening and closing sequence that clarifies the navigation hierarchy.
Use [APPROVED_CONTENT] as the source of names, dates, figures, claims and destinations. List missing inputs before substituting anything. If a demonstration is needed, label its content as fictional. Do not invent customer quotes, rankings, partner logos or product capabilities.
Design direction
Use [BRAND_RULES] and the design system already selected in the project. If no system is supplied, start with this direction: white, charcoal and vivid green highlights; clearly labeled start, transition and end states. Keep type, spacing and color roles consistent. Prioritize the task over decorative elements and avoid a generic collection of unrelated cards.
Content preparation
Supply the navigation hierarchy, menu trigger, destinations and responsive behavior. Define focus placement, dismissal and the nonanimated state.
Layout and behavior
Use motion to clarify how the menu opens from its trigger, keeping destinations accessible promptly. Make the open state obvious without relying on a dramatic entrance.
Task-specific acceptance check
- Manage focus, Escape and reduced motion without delaying access.
- Open and close by keyboard, press Escape and follow a link.
- Restore focus to the trigger on dismissal and ensure reduced motion does not leave menu items hidden.
Implementation and review
Keep text editable. Use semantic structure, descriptive controls, visible keyboard focus and appropriate empty/error states. Check narrow and wide layouts. Respect reduced-motion preferences. Preserve any existing project framework and dependencies; do not silently replace the stack. Return the editable files and explain any incomplete behavior or unsupported inputs. Review this specific task before proposing extra features.
Make the complete information and action available without animation. Provide pause or dismissal where relevant. Document triggers and transitions; do not replace actual progress with a decorative timer.
Reference attachment and reconstruction goal
Attach reference.webp from this prompt’s download bundle alongside this prompt in OpenDesign. Build an editable result with a similar composition and hierarchy; do not embed the whole reference image as the finished interface. Preserve approved project content and brand rules if they conflict with fictional sample labels. If the image is missing or unreadable, ask for it instead of claiming visual fidelity.
Reference composition and content
Use the attached reference.webp as the visual reference for Navigation Transition. Before building, identify the major regions from top to bottom, their relative widths and heights, alignment, spacing, typography hierarchy, surface colors, borders, imagery and repeated components. Preserve those relationships rather than substituting a generic template. Required task content: Design a menu opening and closing sequence that clarifies the navigation hierarchy. Use the following task-specific layout guidance when translating the image into editable elements: Use motion to clarify how the menu opens from its trigger, keeping destinations accessible promptly. Make the open state obvious without relying on a dramatic entrance.
Visual direction from the example brief
white, charcoal and vivid green highlights; clearly labeled start, transition and end states.
Interaction specification
The reference is a static concept: the behavior below is a requirement to implement, not proof that the picture already works. Copy the customized prompt into your working project. Start with the core task: Design a menu opening and closing sequence that clarifies the navigation hierarchy. Manage focus, Escape and reduced motion without delaying access. For each visible control, specify its trigger, affected state and feedback; implement local changes with consistent state across related views. Give search and filters real results, selection controls an explicit active state, and save actions visible pending/success/failure feedback where relevant. Do not add unrelated workflows. Use proper links for navigation, buttons for actions and accessible names for icon controls. Do not imply a backend operation succeeded when only a local demo changed.
Visual comparison and delivery
- Compare the result with the attached image at matching proportions. Review major region placement, relative image sizes, line breaks, spacing, typography hierarchy, contrast, active states and content density before polishing decorative details.
- Then test the narrow layout without squeezing desktop text into tiny labels.
- Keep logos, photos and icons as separate assets and all meaningful labels editable. List any unavailable fonts/assets and any intentional departures. Return the working files plus a concise account of implemented behavior and remaining integrations; do not promise a pixel-identical result from the prompt alone.
Download Prompt + Image
Includes the complete prompt and full-size reference image. Attach both in OpenDesign to guide the layout.
How to Write a Navigation Transition Design Prompt
Use this navigation transition design prompt to design a menu opening and closing sequence that clarifies the navigation hierarchy.
The reference is an AI-generated concept. The instructions below describe what to build and test; the image does not demonstrate working behavior.
Keep Navigation Usable During Its Transition
A menu transition should explain hierarchy and state.
If links move unpredictably or focus remains behind an open overlay, the animation interferes with navigation. Use motion to clarify how the menu opens from its trigger, keeping destinations accessible promptly. Make the open state obvious without relying on a dramatic entrance.
From the Prompt
Use motion to clarify how the menu opens from its trigger, keeping destinations accessible promptly.
Make It Your Own
Define closed, opening, open and closing states. Keep [MENU_GROUPS] stable, expose the menu button's expanded state and specify focus entry, Escape and focus return.
Prepare the Navigation Transition Content
The active state uses a dark menu and dimmed page; specify focus transfer, dismissal and background scroll behavior rather than inferring motion from the picture.
Supply the navigation hierarchy, menu trigger, destinations and responsive behavior. Define focus placement, dismissal and the nonanimated state.
From the Prompt
Design a menu opening and closing sequence that clarifies the navigation hierarchy.
Make It Your Own
For [PROJECT], use [APPROVED_CONTENT] as the source for this navigation transition. Supply the navigation hierarchy, menu trigger, destinations and responsive behavior. Define focus placement, dismissal and the nonanimated state. Identify missing inputs before replacing them with demonstration content.
Interrupt the Animation
Accessibility notes sit below the state sequence; turn these into keyboard and reduced-motion acceptance checks.
Open and close the menu quickly, then navigate by keyboard. Intermediate animation states should not leave invisible links interactive or block page content. Open and close by keyboard, press Escape and follow a link. Restore focus to the trigger on dismissal and ensure reduced motion does not leave menu items hidden.
From the Prompt
Manage focus, Escape and reduced motion without delaying access.
Make It Your Own
Review the navigation transition against this requirement: Manage focus, Escape and reduced motion without delaying access. Open and close by keyboard, press Escape and follow a link. Restore focus to the trigger on dismissal and ensure reduced motion does not leave menu items hidden. Preserve approved content and revise only the parts that fail this check.
Review Your Navigation Transition Result
The preview is a static storyboard. It does not demonstrate working animation, measured performance or accessibility. Test the implemented interaction and reduced-motion path.
- Open and close by keyboard, press Escape and follow a link. Restore focus to the trigger on dismissal and ensure reduced motion does not leave menu items hidden.
Follow-Up Prompt
Use this after the first result. It narrows the revision to the most important part of this task.
Refine the current navigation transition. Open and close by keyboard, press Escape and follow a link. Restore focus to the trigger on dismissal and ensure reduced motion does not leave menu items hidden. Preserve the approved content and visual direction; change only the parts needed to resolve these issues.
