Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Hamburgers | 6,838 | 317 | 60 | a month ago | 20 | March 15, 2022 | 31 | mit | SCSS | |
Tasty CSS-animated Hamburgers | ||||||||||
Slinky | 656 | 1 | 2 years ago | 7 | July 14, 2019 | 22 | mit | JavaScript | ||
A light-weight, responsive, mobile-like navigation menu plugin | ||||||||||
Css Circle Menu | 165 | 7 years ago | April 13, 2015 | 3 | CSS | |||||
A fly-out circle menu built with CSS. | ||||||||||
Quickmenu | 134 | 2 years ago | 13 | May 25, 2021 | mit | SCSS | ||||
The new era of mobile navigation for the web, we're out of hamburgers. | ||||||||||
Delicious Hamburgers | 65 | 1 | 2 months ago | 26 | February 03, 2022 | 1 | mit | SCSS | ||
Beautiful SASS powered hamburger menu buttons | ||||||||||
Simply Nav | 22 | 2 years ago | mit | CSS | ||||||
Simple lightweight & fully responsive mobile navigation built with flexbox and vanilla JavaScript | ||||||||||
Sass Radial Menu | 21 | 11 years ago | ||||||||
A simple sass+compass dynamic radial menu. | ||||||||||
Electrify | 20 | 6 years ago | 4 | April 30, 2017 | mit | JavaScript | ||||
A scaffolding tool for making desktop apps from websites. | ||||||||||
Impromptu React Sidemenu | 14 | 6 years ago | other | JavaScript | ||||||
:tropical_fish: A side menu component for React. | ||||||||||
Sass Watcher | 10 | 12 years ago | ||||||||
An OS X service to watch SASS files, so you don't have to open the command line. |
My circular fly-out CSS navigation menu component, built with CSS3. View the demo here.
To use, include the CSS and JavaScript in your app. Markup your menu like this:
<nav class="c-circle-menu js-menu">
<button class="c-circle-menu__toggle js-menu-toggle">
<span>Toggle</span>
</button>
<ul class="c-circle-menu__items">
<li class="c-circle-menu__item">
<a href="#" class="c-circle-menu__link">
<img src="path/to/icon" alt="">
</a>
</li>
<!-- more items here -->
</ul>
<div class="c-circle-menu__mask js-menu-mask"></div>
</nav>
Then, include your script like this:
<script src="path/to/circleMenu.min.js"></script>
Finally, you can initialize the menu like this:
<script>
var el = '.js-menu';
var myMenu = cssCircleMenu(el);
</script>
The default number of menu items is 5. To use a different number of items, you'll have to configure and build with Sass and Gulp.
You can use this component out of the box by downloading the uncompressed or compressed files from the css/
directory.
The component is available as a bower package, and you can import it by running the following command:
bower install css-circle-menu
The component is built with Sass (SCSS) and uses a JavaScript module as well to handle events. Everything gets compiled and built with Gulp. To develop and compile from gulp, just run:
npm install
gulp
To watch files during development, run
gulp watch
Using the Gulp workflow is hugely beneficial, because it makes the component much easier to work with and customise. If you're not using Gulp to compile the Sass, you will still need to leverage Compass to make use of the math helper functions. The following 11 variables are configurable in the Sass up front, and their defaults are written out for you to look at:
// $menu-item-radius: 48px; [1]
// $num-items: 5; [2]
// $menu-theme-color: rgb(255, 40, 60); [3]
// $spread-radius: 144px; [4]
// $delay-increment: 0.1s; [5]
// $menu-position: "bottom-right"; [6]
// $mq-height: 480px; [7]
// $mq-width: 480px; [8]
// $button-bar-height: 4px; [9]
// $button-bar-spacing: 4px; [10]
// $button-lr-padding: 10px; [11]
You can edit these as you see fit. Here's the breakdown of these 11 configuration options:
bottom-right
- bottom right corner (this is the default)
bottom-left
- bottom left corner
top-left
- top left corner
top-right
- top right cornerOther variables will have to be customised further down in the Sass with your own discretion. Be sure to change up the Sass variable that defines the number of navigation items.
Licensed under the MIT license.
Copyright 2016, Call Me Nick.