negomi/react-burger-menu

:hamburger: An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 59 minutes ago
Added to GitGenius on September 13th, 2026
Created on July 15th, 2015
Open Issues & Pull Requests: 9 (+0)
GitHub issues: Enabled
Number of forks: 568
Total Stargazers: 5,085 (+0)
Total Subscribers: 53 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

react-burger-menu is a React component that provides an off-canvas sidebar with multiple animation effects using CSS transitions and SVG path animations.

The component solves the problem of adding a hamburger menu sidebar to React applications without building one from scratch. It ships with ten pre-built animation styles—slide, stack, elastic, bubble, push, pushRotate, scaleDown, scaleRotate, fallDown, and reveal—each using CSS transitions or SVG animations to create the opening effect. The sidebar appears as an off-canvas element that slides or transforms into view when triggered, and menu items are passed as child elements using JSX. Some animations require wrapper elements around page content to achieve their effect, which are configured via props.

The tool suits projects that need a polished hamburger menu without custom animation work. It works with React 16.8 and later through Hooks, with an older version available for earlier React releases. The README mentions a Redux integration package for projects using Redux state management. Developers should note that certain animations require specific page structure—an outer container and page wrapper element—while simpler animations like slide and stack do not. The component supports opening from either left or right, with positioning controlled through CSS and props.

The project maintains an active test suite using Mocha, Chai, Sinon, and jsdom, with both single-run and watch modes available. A live demo showcasing all animation styles is provided to help developers preview behavior before adoption. The codebase follows Prettier code style standards.