package
A collection of mixins for creating hamburger icons
npm install hamburger-iconGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
A collection of mixins for creating hamburger icons.
Basic idea — Sass Burger.
Support for all popular css preprocessors: Less, Sass and Stylus.
$ bower install hamburger-icon --save;$ git clone git://github.com/mrmlnc/hamburger-icon.git;Then just import the file, whitch includes variables colors in your project.
Less:
@import "lib/hamburger-icon";Sass:
@import "lib/hamburger-icon"Stylus:
@import "lib/hamburger-icon"If you use Bower, the path would be:
bower_components/hamburger-icon/..You can change the settings:
HTML:
<button class="navigation-toggle" data-tools="collapse" data-target="#globalNavbar">
<span class="menu-icon"></span>
</button>
```
**Less:**
Required mixin of settings `.hamburger-settings()`.
````Less
.hamburger-settings(24px, 3px, 5px, #777, @timing-function: linear);
.menu-icon {
.hamburger-generator();
}
.navigation-toggle {
&.active .menu-icon {
.hamburger-animation();
}
}SASS:
.menu-icon {
@include hamburger-generator(24px, 3px, 5px, #777, $timing-function: linear);
}
.navigation-toggle {
&.active .menu-icon {
@include hamburger-animation();
}
}Stylus:
.menu-icon
hamburger-generator(24px, 3px, 5px, #777, $timing-function: linear)
.navigation-toggle
&.active .menu-icon
hamburger-animation()See the Releases section of our GitHub project for changelogs for each release version.
This software is released under the terms of the MIT license.