Locofy Docs
PluginLegacy (Classic)Design structureExampleBuilding a responsive header navbar

Building a responsive header navbar

  1. Ensure that you have applied Autolayout for the header nav bar.
Image 7521
  1. You should have both the desktop elements (menu links) and the mobile elements (hamburger) in the design.

Hide elements appropriately for different screen sizes

  1. Select the container which contains the menu links
Image 7522
  1. Tag this as a container using the Locofy Plugin

  2. In the Styling & Layouts settings, select on the 768px tab and set the display setting to “hide”

Image 7523
  1. Next, select the hamburger menu and tag it as a button
Image 7524
  1. In the Styling & Layouts settings, set the display to “show” on the 768px tab, and set the display to “hide” on the default tab
Image 7525
  1. You have successfully created a responsive header navigation bar

On this page