Mobile floating menu

Developer
Size
3,091 Kb
Views
44,528

How do I make an mobile floating menu?

Floating menu for mobile. Circle, bottom right radius. What is a mobile floating menu? How do you make a mobile floating menu? This script and codes were developed by Kevin Sherman on 27 August 2022, Saturday.

Mobile floating menu Previews

Mobile floating menu - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Mobile floating menu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="float-nav"> <a href="#" class="menu-btn"> <ul> <li class="line"></li> <li class="line"></li> <li class="line"></li> </ul> <div class="menu-txt">menu</div> </a>
</div>
<div class="main-nav"> <ul> <li><a href="#">Degree Programs</a></li> <li><a href="#">Admissions</a></li> <li><a href="#">Alumni & Friends</a></li> <li><a href="#">Campus Community</a></li> <li><a href="#">Parents</a></li> <li><a href="#">Account Login</a></li> </ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Mobile floating menu - Script Codes CSS Codes

.float-nav { position: absolute; bottom: 20px; right: 20px; z-index: 2;
}
.float-nav > a.menu-btn { text-decoration: none; display: block; background-color: #cc3333; color: white; padding: 17px 19px 12px 19px; text-align: center; box-shadow: 2px 2px 8px #777; border-radius: 300px;
}
.float-nav > a.menu-btn.active { transition: background-color 250ms linear; background-color: transparent; box-shadow: none;
}
.float-nav > a.menu-btn.active > ul > li.line:nth-child(1) { border-width: 2px; -moz-transform: rotate(45deg) translate(4px, 6px); -ms-transform: rotate(45deg) translate(4px, 6px); -webkit-transform: rotate(45deg) translate(4px, 6px); transform: rotate(45deg) translate(4px, 6px);
}
.float-nav > a.menu-btn.active > ul > li.line:nth-child(2) { visibility: hidden;
}
.float-nav > a.menu-btn.active > ul > li.line:nth-child(3) { border-width: 2px; -moz-transform: rotate(-45deg) translate(8px, -10px); -ms-transform: rotate(-45deg) translate(8px, -10px); -webkit-transform: rotate(-45deg) translate(8px, -10px); transform: rotate(-45deg) translate(8px, -10px);
}
.float-nav > a.menu-btn > ul { list-style: none; padding: 0; margin: 0;
}
.float-nav > a.menu-btn > ul > li.line { border: 1px solid white; width: 100%; margin-bottom: 7px; -moz-transition-duration: 0.1s; -o-transition-duration: 0.1s; -webkit-transition-duration: 0.1s; transition-duration: 0.1s;
}
.float-nav > a.menu-btn > .menu-txt { width: 100%; text-align: center; font-size: 12px; font-family: sans-serif;
}
.main-nav { display: none; opacity: 0; font-family: sans-serif; position: absolute; bottom: 20px; right: 20px; transition: opacity 250ms;
}
.main-nav.active { display: block; opacity: 1; transition: opacity 250ms;
}
.main-nav > ul { width: 100%; display: block; list-style: none; margin: 0; padding: 0; background-color: #cc3333; box-shadow: 2px 2px 8px #777; border-radius: 3px 3px 33.5px 3px;
}
.main-nav > ul > li > a { text-decoration: none; display: block; font-weight: 200; padding: 18px 80px 18px 18px; color: white;
}
.main-nav > ul > li > a:hover { font-weight: 400;
}

Mobile floating menu - Script Codes JS Codes

$('.float-nav').click(function() { $('.main-nav, .menu-btn').toggleClass('active');
});
Mobile floating menu - Script Codes
Mobile floating menu - Script Codes
Home Page Home
Developer Kevin Sherman
Username ksherman
Uploaded August 27, 2022
Rating 3.5
Size 3,091 Kb
Views 44,528
Do you need developer help for Mobile floating menu?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Kevin Sherman (ksherman) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!