npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

animated-burger-menu

v1.0.1

Published

An off-canvas sidebar React component with a collection of effects and styles using CSS transitions.

Downloads

10

Readme

animated-burger-menu

An overlay React Menu with a collection of effects and styles using CSS transitions.

Demo & examples

Live demo: here

Installation

The easiest way to use animated-burger-menu is to install it from npm and include it in your own React build process (using Browserify, Webpack, etc).

npm install animated-burger-menu

Usage

Items for the sidebar should be passed as child elements of the component using JSX.

import  BurgerMenu  from  'animated-burger-menu'

function  App() {
return (
<BurgerMenu>
    <a href="/">about</a>
    <button data-href="#contact">contact</button>
</BurgerMenu>

Props

|Name|Type |Default |Description |--|--|--|--| |children | node ||Can accept any tag. |classes| object | | Override or extend the styles applied to the component. See CSS API below for more details. |onEnter| func| | Callback fired before the Menu enters. |onEntered | func | |Callback fired when the Menu has entered. |onEntering | func | |Callback fired when the Menu is entering. |onExit| func||Callback fired before the Menu exits. |onExited|func||Callback fired when the Menu has exited. |onExiting|func|| Callback fired when the Menu is exiting. |onMenuItemClick|func||Callback fired when menu item was clicked. Returns item data |isOpen|boolean| false |If true, the menu is visible. |transitionDuration| object| 0.4s| Duration of button transition. <BurgerMenu transitionDuration={'0.3s'}> or <BurgerMenu transitionDuration={'500ms'}> |height*|object| 27px|Pass the height of the menu icon in px or pass auto to get the wrapper height. <BurgerMenu height={50}> or <BurgerMenu height={'auto'}>. |width*|object| 35px| Pass the width of the menu icon in px or pass auto to get the wrapper width. <BurgerMenu width={50}> or <BurgerMenu width={'auto'}>. |buttonBorder | boolean | false | Add border to button. Style: solid 1px. | menuAnimation| text| slideLeft | Menu animation type. Available: slideLeft or fallDown . |menuBarTop| number | top : button height | Adjust menu top position. <BurgerMenu menuBarTop={50}>

*height/width - The menu size is regulated only by one measurement height or width. If you pass the both props to the component the height prop will win.

CSS API

classes={{
		      buttonContainer:  "my_buttonContainer_className",
		      line: "my_line_className",
		      menuContainer: "my_menuContainer_className",
		      menuUl : "my_menuUl_className",
		      menuLi : "my_menuLi_className"
	      }}