Animated Hamburger Button Component | vue-burger-button

Vue burger button as a functional component, which is faster than the normal component, and very small (JS min + gzip is less than 700b and CSS min + gzip is less than 400b).

animated hamburger menu, vue js hamburger menu animation, mui hamburger menu, react hamburger menu npm, close hamburger menu on click javascript

How to make use of it:


npm install vue-burger-button --save

# Use the command bellow for Yarn.
yarn add vue-burger-button

1. Import the BurgerButton component and its CSS.

    @click="isActive = !isActive"

  import BurgerButton from 'vue-burger-button';

  export default {
    components: { BurgerButton },
    data: () => ({ isActive: false })

<style src="vue-burger-button/dist/vue-burger-button.css" />

2. If you need your <burger-button /> to be available everywhere, you can register it as a global component, and don’t forget to import its CSS.

import 'vue-burger-button/dist/vue-burger-button.css';
import Vue from 'vue';
import BurgerButton from 'vue-burger-button';

Vue.component('burger-button', BurgerButton);


activeBooleanfalseIf true it switches to a close button.
barColorString'#000000'Change the bar’s colors.
barHeightNumber10Change the bar heights.
barWidthNumber80Change the bar widths.

aniamted hamburger button component, vue-burguer-button Plugin/Github

See Demo And Download

Official Website(VitorLuizC): Click Here

This superior jQuery/javascript plugin is developed by VitorLuizC. For extra advanced usage, please go to the official website.

Related Posts


Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…


Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…


How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…


A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…