Indexed by TopGit from live GitHub metadata: jonsuh/hamburgers has 7.1k stars, written primarily in SCSS. Tasty CSS-animated Hamburgers
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Hamburgers is a collection of tasty CSS-animated hamburger icons. Also included is the source as a Sass library. It’s modular and customizable, so cook up your own hamburger.
Table of Contents
Usage
Sass
Customization
Accessibility
Browser Support
Usage
Download and include the CSS in the <head> of your site:
Since the class name would have to be toggled via JavaScript and implementation would differ based on the context of how you plan on using the hamburger, I’m going to leave the rest up to you.
Sass
.scss source files are available if you use Sass as your CSS precompiler. It’s customizable and modular.
Here is the full list of default settings (found in _sass/hamburgers/hamburgers.scss);
$hamburger-padding-x : 15px;
$hamburger-padding-y : 15px;
$hamburger-layer-width : 40px;
$hamburger-layer-height : 4px;
$hamburger-layer-spacing : 6px;
$hamburger-layer-color : #000;
$hamburger-layer-border-radius : 4px;
$hamburger-hover-opacity : 0.7;
$hamburger-active-layer-color : $hamburger-layer-color;
$hamburger-active-hover-opacity: $hamburger-hover-opacity;
// To use CSS filters as the hover effect instead of opacity,
// set $hamburger-hover-use-filter as true and
// change the value of $hamburger-hover-filter accordingly.
$hamburger-hover-use-filter : false;
$hamburger-hover-filter : opacity(50%);
$hamburger-active-hover-filter: $hamburger-hover-filter;
// Remove or comment out the hamburger types you don’t want
// or need, so they get excluded from the compiled CSS.
$hamburger-types: (
3dx,
3dx-r,
3dy,
3dy-r,
3dxy,
3dxy-r,
arrow,
arrow-r,
arrowalt,
arrowalt-r,
arrowturn,
arrowturn-r,
boring,
collapse,
collapse-r,
elastic,
elastic-r,
emphatic,
emphatic-r,
minus,
slider,
slider-r,
spring,
spring-r,
stand,
stand-r,
spin,
spin-r,
squeeze,
vortex,
vortex-r
);
ems or rems
Wanna work with ems or rems instead of px? Just change all the px values to the unit of your choice. Note: Be consistent (all px or all ems), otherwise it may break—the math behind the customization will fail if it attempts to perform operations with values of different units.
Not satisfied?
Dig into _base.scss or types/ and customize to your heart’s content. Fair warning: It‘s pretty delicate and may break, especially if you tweak the animations themselves.
Accessibility
Hamburger menu icons can be useful in the right context, but they’re not the most accessible.
ARIA will help make it accessible to people with disabilities.
You will need JavaScript to toggle between aria-expanded attribute being set to true and false, as this will indicate to visually impaired users whether the menu is opened or closed.
The hamburger button belongs inside the <nav> so that assistive technologies will be able to locate the navigation, and to allow these users to easily locatate the hamburger button, without having to search up and down the DOM, once they realize they've found themselves in an empty navigation.
If you insist on using <div>s, by default they’re not focusable (i.e. via keyboard or assistive technology). Add the tabindex attribute alongside ARIA. You will also need to recreate expected keyboard functionality for these <div>s. Using JavaScript, you will need to make sure that both Space and Enter will toggle the hamburger states.
Here are some resources on web accessibility and ARIA.
Browser Support
Animations use CSS3 3D transforms (translate3d whenever possible for GPU acceleration), which is supported by most browsers (not supported by IE9 and older and Opera Mini). For detailed browser support, check caniuse.com.
How does jonsuh/hamburgers compare to other Frontend projects?
jonsuh/hamburgers is tracked by TopGit in the Frontend category, with 7.1k GitHub stars and written in SCSS. Browse the Frontend topic page on TopGit to compare it against similar projects by stars and activity.
How many stars does jonsuh/hamburgers have?
jonsuh/hamburgers has 7.1k GitHub stars — refresh the page for the live number, or check github.com/jonsuh/hamburgers. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is jonsuh/hamburgers open source?
Yes — jonsuh/hamburgers ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/jonsuh/hamburgers.
What else is in the Frontend space?
jonsuh/hamburgers is tracked by TopGit under the Frontend category, alongside 5 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is jonsuh/hamburgers?
jonsuh/hamburgers (jonsuh/hamburgers) is a SCSS project on GitHub. From the project's own README: Tasty CSS-animated Hamburgers
Where can I see jonsuh/hamburgers in action?
The project maintains a homepage at https://jonsuh.com/hamburgers. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about jonsuh/hamburgers?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/jonsuh/hamburgers is the definitive source.
Read full README in the tab above.
Want a second opinion on hamburgers?
Ask an AI that can read this page — one click and you get its take on hamburgers.