Vue Burger Menu is a Vue.js component that provides a collection of off-canvas sidebar menu effects and styles. It leverages CSS transitions and SVG path animations to deliver various hamburger menu experiences, such as sliding, scaling, rotating, and revealing effects. The library is currently at version 2.0.5, with its latest release six years ago, indicating a maintenance-focused cadence rather than active feature development. Key differentiators include its ready-to-use animations, customizable properties like width and position, and event hooks for managing menu state. It abstracts away complex CSS and SVG animations into easy-to-use Vue components, supporting Vue 2 and likely Vue 3 (though a separate `vue3-burger-menu` package also exists). The package aims to save screen space on mobile devices by hiding navigation until a user action reveals it.
npm install vue-burger-menuVerified import paths — ran on the pinned version, not inferred.
Demonstrates installation, basic usage of the `Slide` animation, registering the component, passing menu items as slots, and controlling the menu's open state programmatically with event handlers.
Ensure your application HTML includes `<main id="page-wrap">` for content and `<div id="app">` for the overall wrapper, then pass these IDs as props: `<Push pageWrapId="page-wrap" appId="app" />`.
Avoid using WIP animations in production environments. Stick to stable animations like `Slide`, `Push`, `ScaleDown`, `ScaleRotate`, `Reveal`, or `PushRotate`.
Consider alternatives like `vue3-burger-menu` for Vue 3 projects, or be prepared to fork and maintain the code yourself for newer Vue environments.
To open from the right: `<Slide right />`. To set a custom width: `<Slide width="250px" />` or `<Slide :width="400" />`.
Ensure the component is imported and correctly listed in the `components` option of your Vue component: `import { Slide } from 'vue-burger-menu'; export default { components: { Slide } }`.Run `npm install vue-burger-menu --save` or `yarn add vue-burger-menu` to install the package. Verify the import path `from 'vue-burger-menu'` is correct.
For animations like `Push` or `ScaleDown`, ensure your template includes `<div id="app">...<main id="page-wrap">...</main></div>` and your component uses props like `<Push pageWrapId="page-wrap" appId="app" />`.
No dependency data recorded yet.