All Projects → luukdv → Hamburger React

luukdv / Hamburger React

Licence: mit
Animated hamburger menu icons for React (1.5 KB) 🍔

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Hamburger React

Sunset.css
This library offers a collection of different CSS-powered transitions.
Stars: ✭ 99 (-74.68%)
Mutual labels:  animations, transition, transitions
React Burger Menu
🍔 An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations
Stars: ✭ 4,544 (+1062.15%)
Mutual labels:  animations, transitions, sidebar
Layerjs
layerJS: Javascript UI composition framework
Stars: ✭ 1,825 (+366.75%)
Mutual labels:  navigation, transition, menu
Easytransform
Enhancing CSS transform with a little bit of JavaScript.
Stars: ✭ 10 (-97.44%)
Mutual labels:  animations, transition, transitions
Menu
Menu and sidebar management package for Laravel
Stars: ✭ 6 (-98.47%)
Mutual labels:  navigation, menu, sidebar
React Native Fluid
Declarative animations for React Native and React Native Web.
Stars: ✭ 92 (-76.47%)
Mutual labels:  navigation, animations, transitions
animated
🌊 Implicit animations for JavaFX.
Stars: ✭ 79 (-79.8%)
Mutual labels:  transition, animations, transitions
React Overdrive
Super easy magic-move transitions for React apps
Stars: ✭ 3,001 (+667.52%)
Mutual labels:  animations, transitions
React Horizontal Scrolling Menu
Horizontal scrolling menu component for React.
Stars: ✭ 289 (-26.09%)
Mutual labels:  navigation, menu
Radialmenu
A highly customizable radial menu that's very easy to setup.
Stars: ✭ 371 (-5.12%)
Mutual labels:  icons, menu
Wp Bootstrap Navwalker
A custom WordPress nav walker class to fully implement the Twitter Bootstrap 4.0+ navigation style (v3-branch available for Bootstrap 3) in a custom theme using the WordPress built in menu manager.
Stars: ✭ 3,290 (+741.43%)
Mutual labels:  navigation, icons
Menuspy
A JavaScript library to make navigation menus highlight the item based on currently in view section.
Stars: ✭ 283 (-27.62%)
Mutual labels:  navigation, menu
Ember Burger Menu
An off-canvas sidebar component with a collection of animations and styles using CSS transitions
Stars: ✭ 280 (-28.39%)
Mutual labels:  animations, menu
Pixo
Convert SVG icons into React components
Stars: ✭ 371 (-5.12%)
Mutual labels:  icons, icon
Sidr
Sidr is a jQuery plugin for creating side menus and the easiest way for doing your menu responsive.
Stars: ✭ 2,924 (+647.83%)
Mutual labels:  navigation, menu
Flutter programs
Experiments with Mobile
Stars: ✭ 308 (-21.23%)
Mutual labels:  navigation, animations
Sheet
📑 Actionsheet with navigation features such as the Flipboard App
Stars: ✭ 264 (-32.48%)
Mutual labels:  navigation, transition
Terminal Icons
A PowerShell module to show file and folder icons in the terminal
Stars: ✭ 303 (-22.51%)
Mutual labels:  icons, icon
Django Sitetree
Reusable application for Django introducing site tree, menu and breadcrumbs navigation elements.
Stars: ✭ 330 (-15.6%)
Mutual labels:  navigation, menu
React Awesome Reveal
React components to add reveal animations using the Intersection Observer API and CSS Animations.
Stars: ✭ 346 (-11.51%)
Mutual labels:  hooks, animations

Preview

Animated hamburger menu icons for React

Hamburger menu icons for React, with CSS-driven transitions. Created to be as elegant and performant as possible. This means no JavaScript animations, no transitions on non-cheap properties and a small size.

Installation

npm install hamburger-react

Size

When using one hamburger, ~1.5 KB will be added to your bundle (min + gzip).

Usage

Visit the website for full documentation, API and examples. A basic implementation looks as follows:

import Hamburger from 'hamburger-react'
const [isOpen, setOpen] = useState(false)
<Hamburger toggled={isOpen} toggle={setOpen} />

Or without providing your own state:

<Hamburger onToggle={toggled => ...} />

Yet another hamburger library?

Yes. Since the creation of these burgers in 2015 a lot of similar ones have appeared, with one or more of the following downsides:

  • Animations that don't feel natural
  • Transitions on expensive properties (jerky animations)
  • No React support
  • Size (additional dependencies besides React or no tree shaking)
  • Not customizable, or too customizable (no sensible defaults)
  • Doing too much

Accessibility

It is recommended to have a tap/click area of at least 48x48 pixels. Therefore, padding will be added around the icon to create a surface of exactly this size.

Keyboard interaction is provided with the enter key, and the icon element has the recommended accessibility attributes (such as role). You can use the label property to supply an ARIA label for the icon.

Support

The icons are hooks-based, and will work with React 16.8.0 ('the one with hooks') or higher.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].