BETAThis is a new service – your feedback will help us to improve it.

Add interactivity to your prototypes

It's now time to revisit your prototypes, and enhance them by adding interactivity.

Here are two common design patterns that make use of Javascript. Consider whether you can make use of either or both of these in your app.

Don't use Javascript for the sake of it. Consider user needs, and only use Javascript when it improves your app's usability.

Menus

Narrow mobile screens have less room for text and design elements.

It may be beneficial to hide your app's menu initially, and require users to tap a button to show it.

To use this pattern, your menu should be hidden by default, and you should offer a button that toggles the menu's visibility, like the example earlier in this module.

If using this pattern, pay close attention to how your design should change on larger screens.

You may need to write media queries to show and hide different parts of the page as the screen width changes.

Tabs

When showing lots of information about a topic, it's common to split that information into tabs.

A user can then choose the tab that's most relevant to them.

This pattern is harder to implement, but there are plenty of tutorials and examples on the web.

To-do

  1. Revisit your app's concept and user needs, and consider whether either of these design patterns is a good fit.
  2. Write the HTML, CSS and Javascript to include one or both of these patterns in your prototypes.
  3. If neither seem to fit, consider what other ehancements you could make.

Consider leaving feedback for this module.

When you're ready, proceed to the next module.

Lessons last updated 12th July 2019. You can improve this lesson on Github.
Part of Adding interactivity
  1. Introducing Javascript
  2. Your first Javascript program
  3. Variables
  4. Conditional logic
  5. Affecting the page
  6. Making a menu
  7. Responding to user actions
  8. Keep your Javascript accessible
  9. Get confident with Javascript
  10. Add interactivity to your prototypesP