Mobile floating menu
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 - 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');
});
Developer | Kevin Sherman |
Username | ksherman |
Uploaded | August 27, 2022 |
Rating | 3.5 |
Size | 3,091 Kb |
Views | 44,528 |
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!
Name | Size |
BenU Button Styles | 2,034 Kb |
VHS tapes | 3,089 Kb |
Degree Map | 3,137 Kb |
Main Campus Homepage Concept | 12,512 Kb |
QCore Order Entry | 3,136 Kb |
Site Header | 3,300 Kb |
BenU Interior Page Layout | 6,731 Kb |
Major Card | 3,237 Kb |
Internal Page Layout - Mesa | 6,017 Kb |
BenU Bookmarklets | 2,648 Kb |
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!
Name | Username | Size |
Drifting Clouds | Benedikte | 2,247 Kb |
Realistic Buttons | Stoypenny | 2,248 Kb |
Hamburger Menu Animation | Salmanraza | 2,580 Kb |
03 - CSS Variables | Run-time | 2,682 Kb |
AngularJS Skills | Supro | 3,312 Kb |
Simple Carousel Pure CSS | Dangvanthanh | 4,080 Kb |
This in constructor context | _shree33 | 1,718 Kb |
Sencha Touch 2.3.1 Basic Grid Example | Trozdol | 2,770 Kb |
Social.svg.min | Larsenwork | 13,849 Kb |
Banner Ad | Raquellorenzana | 4,172 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!