Navigation for Javascript
UI for navigation featuring Hamburger menu, Bottom and Tab navigation components.
Use it on responsive websites and mobile apps. Together with the mobiscroll Page component makes an easy to use tool for building a great Navigation experience.
Shipping with useful features for a refined UX, including:
- Usage on mobile and desktop with responsive features
- Icons and labels for expressive nav targets
- Ergonomic bottom navigation
- Scrollable tab-list
- Compact hamburger menu for saving space
- Multiple theme support
- Top, bottom and inline display support
- RTL Support
- Full localization
Navigation demos available for other frameworks.
Viewing demos & code for
Javascript Navigation
Navigation for Javascript
Navigation for Javascript
Change the theme setting here
Change the language and localization settings here
- More
- More
- More
Navigation - Bottom navigation
Use the bottom navigation for the top level navigation solution in your app. When you navigate between pages of the same level of hierarchy, it gives a consistent look on each page. While it can also be rendered on the top of the viewport, on mobile handheld devices the bottom navigation bar is the easiest to reach. It's ergonomic.
Navigation items can be used with both icons and labels. Additionally every item can show a badge, containing dynamic information. For example the number of unread notifications.
The bottom navigation component automatically hides navigation items behind a "More" button, when the viewport is not wide enough.
This behavior can be further customized with the layout
settings.
mobiscroll.nav('#demo-icon', {
lang: ' '
theme: 'ios',
themeVariant: 'light',
type: 'bottom',
display: 'inline'
});
mobiscroll.nav('#demo-icon-text', {
lang: ' '
theme: 'ios',
themeVariant: 'light',
type: 'bottom',
display: 'inline'
});
mobiscroll.nav('#demo-badge', {
lang: ' '
theme: 'ios',
themeVariant: 'light',
type: 'bottom',
display: 'inline'
});
mobiscroll.nav('#demo-show-more', {
lang: ' '
theme: 'ios',
themeVariant: 'light',
type: 'bottom',
display: 'inline'
});
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Icon only</div>
<ul id="demo-icon" class="mbsc-cloak">
<li data-icon="newspaper"></li>
<li data-icon="material-people"></li>
<li data-icon="bubble"></li>
<li data-icon="fa-globe"></li>
</ul>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Icon and label</div>
<ul id="demo-icon-text" class="mbsc-cloak">
<li data-icon="newspaper">News</li>
<li data-icon="material-people">People</li>
<li data-icon="bubble">Messages</li>
<li data-icon="fa-globe">Notifications</li>
</ul>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Icon and label with badge</div>
<ul id="demo-badge" class="mbsc-cloak">
<li data-icon="newspaper">News</li>
<li data-icon="material-people" data-badge="1">People</li>
<li data-icon="bubble" data-badge="9">Messages</li>
<li data-icon="fa-globe">Notifications</li>
</ul>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Show more</div>
<ul id="demo-show-more" class="mbsc-cloak">
<li data-icon="newspaper">News</li>
<li data-icon="material-people" data-badge="1">People</li>
<li data-icon="bubble" data-badge="9">Messages</li>
<li data-icon="fa-globe">Notifications</li>
<li data-icon="camera">Your story</li>
<li data-icon="calendar">Events</li>
<li data-icon="line-settings">Preferences</li>
</ul>
</div>
Navigation - Tabs
Use the tab navigation for organizing content into categories.
The tab navigation component supports swipe gestures for the tab-list, which makes the component a scalable solution for as many tabs as needed.
Tabs can combine icons and labels to be more expressive like in this demo.
Navigating between tabs can also be customized. Check out the demo for handling navigation with external buttons.
Navigation - Hamburger menu
The hamburger menu is a compact and well known solution for grouping destinations that need to be accessible from multiple pages.
One of the advantages it has over the Tabs or the Bottom navigation is that it hides the nav-items and saves space.
The menu button can be customized to suit your needs with the menuIcon
and menuText
settings.
Navigation - Prev/Next
The Tab navigation component is customizable in a variety of ways. This demo shows how to add custom Prev/Next buttons beside the Tab component and how to make page change obvious.
If you are looking for the simplest solution in grouping content, have a look on the previous tabs demo.
Navigation - Tabs with icons
Add icons and labels to nav-items to be more informative. Build and save custom icon sets from over 2500 icons to choose from.
Use the scrollable tab-list for self-adjusting desktop & mobile content management.
Navigation - Event handlers
The navigation components ships with different event hooks for deep customization. Events are triggered through the lifecycle of the component where you can tie in custom functionality and code.
While users interact with the UI events like onItemTap
, onMenuShow
, onMenuHide
... will be triggered.
Interact with the example and check the event log for the output.
EVENTS FIRED:
Navigation - Responsive
Set up the Navigation to behave responsively. Use the appriopriate positioning and rendering based on the screen size. You can have Hamburger menu on small screens and Tab navigation on large screens.
All this can be configured under the responsive
setting where you pass the options for each breakpoint.
responsive: { xsmall: { ... }, small: { ... }, medium: { ... }, large: { ... }, xlarge: { ... } }
Navigation - Desktop
Bottom and Tab navigation can be equally fitting for managing content on desktop web apps and large screens.
You can choose between one and the other depending on you content layout or use both like in this example.
Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.
What framework are you using?
Step 1.Install the Mobiscroll CLI from npm
$ npm install -g @mobiscroll/cli
The CLI makes configuring your apps super simple 👍
Step 2.Run the following command in the root folder of your Ionic project
$ mobiscroll config ionic --version=4
You will be prompted to log in with your mobiscroll account. Set your password here
Create an Ionic 3 & Mobiscroll starter with the CLI:
Run this command for Ionic 4 & Mobiscroll starter:
Step 3.Copy the code into your app.
Step 4.Run ionic serve in the root folder of your app 🎉
$ ionic serve
And voilà, everything should be running smoothly.
Step 1.Install the Mobiscroll CLI from npm
$ npm install -g @mobiscroll/cli
The CLI makes configuring your apps super simple 👍
Step 2.Run the following command in the root folder of your Ionic project
$ mobiscroll config ionic --version=4
You will be prompted to log in with your mobiscroll account. Set your password here
Run this command for Ionic 5 & React Mobiscroll starter:
Step 4.Run ionic serve in the root folder of your app 🎉
$ ionic serve
And voilà, everything should be running smoothly.
Step 1.Install the Mobiscroll CLI from npm
$ npm install -g @mobiscroll/cli
The CLI makes configuring your apps super simple 👍
Step 2.Run the following command in the root folder of your Angular project
$ mobiscroll config angular --version=4
You will be prompted to log in with your mobiscroll account. Set your password here
Step 3.Copy the code into your app. HTML goes into the markup, TS into Typescript.
Step 4.Run ng serve in the root folder of your app 🎉
$ ng serve
And voilà, everything should be running smoothly.
Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.
$ npm install
$ ionic serve
Let us know if we can help and enjoy!
Everything is set up so that you can dig in right away and start exploring.
We have set up a trial so that you can try the demos locally.
Extract the zip file and open the demo in your favorite browser.
To install Mobiscroll in your project
follow instructions from this page.
Let us know if we can help and enjoy! 👍
Please extract the zip file and run the project like any Angular CLI app.
Make sure to have the Angular CLI installed.
For installation and usage, extract the zip file and open a terminal window and follow these steps.
$ npm install
$ ng serve --open
Let us know if we can help and enjoy! 👍
Everything is set up so that you can dig in right away and start exploring.
We have set up a trial so that you can try the demos locally.
The easiest way to get started is to follow the installation steps and by
grabbing the code directly from the demo page. Let us know if we can help and enjoy! 👍
You'll find a fully functional Kitchen-sink Ionic app in the zip file.
Everything is set up so that you can dig in right away and start exploring.
We have set up a trial so that you can try the demos locally.
The demos are using Babel's in-browser ES6 and JSX transformer.
Extract the zip file and open the demo in your browser. To install Mobiscroll in your project
follow instructions from this page.
Let us know if we can help and enjoy! 👍
We have to set you up with a trial for this to run 👍
Enter a new password and hit the button below to change it!
You are setting a password for the account
Your password has been changed!