Create a Hamburger Website Navigation With Menu Rotation

Menu rotation is creative hamburger navigation that reveals the sidebar menu by rotating the main content of the web page.

hamburger menu example, hamburger menu css, hamburger menu html, bootstrap hamburger menu navigation, hamburger menu left or right, mobile menu examples

How to make use of it:

1. Download the latest Font Awesome font. Optional but recommended.

<link rel="stylesheet" href="/path/to/cdn/font-awesome/VERSION/css/all.min.css" />

2. Create a side navigation bar on the page.

<nav>
  <ul>
    <li><i class="fas fa-home"></i> Home</li>
    <li><i class="fas fa-user-alt"></i> Profile</li>
    <li><i class="fas fa-envelope"></i> Contact Us</li>
  </ul>
</nav>

3. Create a hamburger button to toggle the sidebar navigation.

<div class="container">
  <div class="circle-container">
    <div class="circle">
      <button id="kanga">
        <i class="fas fa-times"></i>
      </button>
      <button id="fongola">
        <i class="fas fa-bars"></i>
      </button>
    </div>
  </div>
  <div class="content">
    Main Content Here
  </div>
</div>

4. Necessary CSS and CSS3 Styles.

.container {
  background-color: #fafafa;
  transform-origin: top left;
  transition: transform 0.5s linear;
  width: 100vw;
  min-height: 100vh;
  padding: 50px;
}

.container.lakisa-menu {
  transform: rotate(-20deg);
}

.circle-container {
  position: fixed;
  top: -100px;
  left: -100px;
}

.circle {
  background-color: #0063b4;
  height: 200px;
  width: 200px;
  border-radius: 50%;
  position: relative;
  transition: transform 0.5s linear;
}

.container.lakisa-menu .circle {
  transform: rotate(-70deg);
}

.circle button {
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100px;
  background: transparent;
  border: 0;
  font-size: 26px;
  color: #fff;
}

.circle button:focus {
  outline: none;
}

.circle button#fongola {
  left: 60%;
}

.circle button#kanga {
  top: 60%;
  transform: rotate(90deg);
  transform-origin: top left;
}

.container.lakisa-menu + nav li {
  transform: translateX(0);
  transition-delay: 0.3s;
}

nav {
  position: fixed;
  bottom: 40px;
  left: 0;
  z-index: 100;
}

nav ul {
  list-style-type: none;
  padding-left: 30px;
}

nav ul li {
  text-transform: uppercase;
  color: #fff;
  margin: 40px 0;
  transform: translateX(-100%);
  transition: transform 0.4s ease-in;
}

nav ul li i {
  font-size: 20px;
  margin-right: 10px;
}

nav ul li + li {
  margin-left: 15px;
  transform: translateX(-150%);
}

nav ul li + li + li {
  margin-left: 30px;
  transform: translateX(-200%);
}

5. Rotate the main content to reveal the sidebar navigation.

const fongola = document.getElementById('fongola')
const kanga = document.getElementById('kanga')
const container = document.querySelector('.container')
fongola.addEventListener('click', () => container.classList.add('lakisa-menu'))
kanga.addEventListener('click', () => container.classList.remove('lakisa-menu'))

Hamburger Site Navigation With Menu Rotation Plugin/Github


See Demo And Download

Official Website(Sums-shadow): Click Here

This superior jQuery/javascript plugin is developed by Sums-shadow. For extra Advanced Usages, please go to the official website.

Related Posts

Iconpicker-Bootstrap-5

[Icon Picker] Iconpicker for Bootstrap 5 Icons Library

Bootstrap 5-based icon picker which supports any icon libraries like Bootstrap Icons, Font Awesome[fontawesome.com], etc. Must Read: 1000+ Pixel Perfect SVG Icons For Vue Components | Unicons How…

bootstrap-multiple-image-upload-with-preview

Bootstrap Multiple Image Upload with Preview and Delete | ImagesLoader

ImagesLoader is a standard bootstrap image upload plugin that provides an easy-to-use and nice-looking interface for uploading multiple images to a web server. Must Read: HTML 5…

Animating-Split-Flap-Displays-fallblatt

A Lightweight jQuery Plugin for Animating Split-Flap Displays | fallblatt

fallblatt is a lightweight jQuery plugin for animating split screens. This jQuery plugin allows you to include such offers in your web application. Everything from virtual departure…

bootstrap-5-dark-theme

Dark & Light Switch Mode Toggle for Bootstrap 5

Switching to dark mode is done by toggling HTML tags that include -dark or -light as a category. It is made by manipulating the DOM with JavaScript. The text color also changes depending…

jQuery-SyoTimer-Plugin

jQuery Plugin for Countdown Timer on HTML Page | SyoTimer

yoTimer jQuery plugin allows you to create digital style countdowns/periodic timers on the webpage, with callbacks support and timezone/translation customization. Features Periodic count with the specified period…

vue-js-periodic-table

Dynamic, Data-driven Periodic Table built with Vue.js

Periodicity is a dynamic, data-driven periodic table created with Vue.js that uses D3 animations and graphs to show the beauty of periodic trends. Built With vue.js (component…