Design
One interaction, two layouts for desktop and mobile
See how to adapt a horizontal eLearning timeline for mobile while preserving content, navigation and learner progress.
· 3 min read
A horizontal timeline can work well on a laptop. Learners can see the sequence at a glance and select the milestone they want. On a phone, that same layout can crowd the labels and leave too little room to read the details.
Responsive eLearning design starts with the action the learner needs to take. For a timeline about handling a customer complaint, that might be finding out what to do between acknowledging the complaint and handing it over.
Design the phone layout around how people move through it
On desktop, lay out the milestones horizontally and show details next to the selected step. On mobile, stack them vertically and expand each step beneath its label. That keeps the explanation close to the button the learner just pressed.
In a stage-based Aura project, I’d use a mobile viewport variant to reposition and resize the milestones. I’d keep the wording and completion rules consistent across both views. If both layouts use separate controls, they should update the same progress state.
Test the actions on a real phone
Start with the longest label and the step containing the most text. Can you open and close it comfortably? Does the expanded content stay in view? Can you return to an earlier step and still tell which ones you’ve visited? Try the same interaction using a keyboard and check that focus follows the visual reading order.
A mobile layout is ready when someone can work through the interaction without zooming, guessing where to tap or losing their place.
Keep the comparison visible where it matters
Desktop layouts often make it easier to compare several milestones at once. A vertical layout can lose that overview as panels open and push later items down the page. For the complaint timeline, give each milestone a short verb-led label such as “Acknowledge”, “Check details” and “Hand over”. Keep those labels visible in the collapsed state so the learner can still scan the sequence.
If two steps are easy to confuse, bring the distinction into the content. An example might show that recording an agreed callback and transferring ownership are separate actions. Add a one-sentence summary beside each milestone and use the expanded panel for an example. This reduces the amount of scrolling someone has to do just to find the right step.
Plan what happens when the layout changes
If learners turn the phone sideways or resize the window, decide what should happen to their open panel. Where the build supports it, preserve the selected milestone and display it using the appropriate layout. Keep the active state tied to the milestone itself so the course can restore it consistently.
Check any text or media that lives in both layouts. A policy update should reach both versions. If you need separate labels or shorter versions of the same content, record that choice in the build notes and check both when you revise the course. For content that requires a long explanation, consider whether the phone layout should scroll instead of squeezing everything onto one screen.
Record a short test route
Open the third step, read it, close it and open the first. Rotate the phone mid-task and check whether the same step is still selected. Then use the interaction with the device’s text size increased and inspect the longest paragraph. Repeat the route on desktop with a keyboard. You’re looking for a sequence learners can finish comfortably in either layout, with the same result at the end.
