Interactive Layout

Connects a clear control to a visible content change so people can explore a product, comparison, or story at their own pace.

  • Product showcases
  • comparison tools
  • onboarding flows
  • storytelling sites

What you’ll learn

  • How to recognize the structure
  • When it helps—and its trade-offs
  • How it adapts to smaller screens
  • A practical starting point
In this guide

Start with the shape

Read the figure

The numbered parts explain the decisions behind the composition. Read the relationships first; the colors are simply there to make the structure visible.

Layout anatomyPattern 12
Interactive Layout: structure diagramConnect a useful control to a clear, visible change in content. 1: Clear control. The input communicates what can be selected, opened, or adjusted. 2: Changed content. A predictable region updates or reveals relevant information. 3: State feedback. Selection, progress, or an expanded state makes the result understandable.010203

Connect a useful control to a clear, visible change in content.

  1. 01
    Clear control

    The input communicates what can be selected, opened, or adjusted.

  2. 02
    Changed content

    A predictable region updates or reveals relevant information.

  3. 03
    State feedback

    Selection, progress, or an expanded state makes the result understandable.

How the pattern works

An interactive layout changes or reveals content in response to a person's choices. Tabs, comparison controls, disclosures, and product configurators are useful when the interaction helps answer a question or complete a task.

Design the content and its states before designing the animation. People need to recognize the control, understand what changed, and reach the same information using a keyboard or touch input. Interaction should add understanding, not make the essential message harder to reach.

Where it fits—and what to consider

A useful choice when

  • A choice can reveal more relevant information.
  • Comparing states helps someone understand the product.
  • The result of the interaction is useful and easy to explain.

Be deliberate about

  • Essential information should not depend on a difficult gesture.
  • Unexpected movement and unclear states can reduce understanding.

Adapt the relationship, not just the size

A useful mobile layout preserves the task and content order while changing how the regions share space.

Interactive Layout: narrow-screen adaptationUse touch-sized controls and a clear vertical relationship between the input and its result. Support keyboard input and reduced-motion preferences.
Small-screen structure

On wider screens

Keep controls near their results and preserve a stable content region when states change. Provide visible selection and focus states.

On narrower screens

Use touch-sized controls and a clear vertical relationship between the input and its result. Support keyboard input and reduced-motion preferences.

Build the structure

  1. 01Define the question the interaction helps answer.
  2. 02Design the default, changed, and focus states.
  3. 03Start with native controls and add more complex behavior only when it helps.
A structural starting pointhtml
<details class="feature">
  <summary>Explore this feature</summary>
  <section aria-label="Feature details">
    <h2>A useful result</h2>
    <p>Supporting information appears here.</p>
  </section>
</details>

Adapt the content, spacing, and breakpoints to your page. This example illustrates the structure, not a complete application.

A small design exercise

Try it yourself

Choose a feature that is hard to explain in one screenshot. Define one control and two content states, then test whether the result is understandable without animation.

See a worked example

Inspect a complete page using this pattern, then connect its content regions back to the annotated figure.

Open the example page
A worked example of interactive layoutOpen full page (opens in a new tab)

Put the pattern into practice

Use the layout prompt as a starting brief, then adapt it to your real content and the decisions covered in this guide.

Read the AI layout prompt

Select the text below and copy it into your AI tool. Replace example content with your own.