Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-animated-navbars

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-animated-navbars

A react library for creating animated navigation panels.

  • 1.0.10
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

react-animated-navbars

Congrats! You just saved yourself hours of work by using react-animated-navbars library for creating animated navigation panels

Demo

Take a look at the live demo!

Installation

npm

npm i react-animated-navbars

yarn

yarn add react-animated-navbars

Usage

Ghost Navbar

  • Import GhostNavbar component from react-animated-navbars
  • Import styles react-animated-navbars/dist/react-animated-navbars.cjs.development.css
import React from "react";
import { GhostNavbar } from "react-animated-navbars";
import "react-animated-navbars/dist/react-animated-navbars.cjs.development.css";

const App = () => {
  return (
    <>
      <GhostNavbar
        styles={{
          floatButtonSize: 0.9,
          floatButtonX: 6,
          floatButtonY: 4
        }}
      >
        <ul>
          <li>ABOUT</li>
          <li>PROJECTS</li>
          <li>ELEMENTS</li>
          <li>CONTACT</li>
        </ul>
      </GhostNavbar>
    </>
  );
};

export default App;

API

Props
PropTypeDefaultDescription
childrenReactNode (ul > li)optionalNavbar items
classNamestringoptionalBase class
stylesstyles objectoptionalBase styles
STYLES
PropertyTypeDefaultDescription
navigationReact CSS PropertiesoptionalBase styling
navigationButtonReact CSS PropertiesoptionalGhost button styling
navigationIconReact CSS PropertiesoptionalGhost icon styling
navigationBackgroundReact CSS PropertiesoptionalPanel background styling
iconHeight, iconWidth, iconColorstringoptionalIcon style
floatButtonXnumber85Ghost button X position from right
floatButtonYnumber2Ghost button Y position from top
listHoverColor[string, string][color 1, color 2]Hover animation color
font- Color, Size, HoverColoroptionalstringcommon text styling

Ghost Button

import React from "react";
import { GhostButton } from "react-animated-navbars";
import "react-animated-navbars/dist/react-animated-navbars.cjs.development.css";

const App = () => {
  return (
    <>
      <GhostButton
        styles={{
          floatButtonX: 85,
          floatButtonY: 7
        }}
      >
          <ul>
          <li>ABOUT</li>
          <li>PROJECTS</li>
          <li>ELEMENTS</li>
          <li>CONTACT</li>
        </ul>
        </GhostButton>
    </>
  );
};

export default App;

API

Props
PropTypeDefaultDescription
childrenReactNode (ul > li)optionalNavbar items
classNamestringoptionalBase class
stylesstyles objectoptionalBase styles
STYLES
PropertyTypeDefaultDescription
navigationReact CSS PropertiesoptionalBase styling
navigationButtonReact CSS PropertiesoptionalGhost button styling
navigationIconReact CSS PropertiesoptionalGhost icon styling
navigationCardReact CSS PropertiesoptionalPanel pop-up card styling
floatButtonSizenumberoptionalGhost button size (just number)
floatButtonXnumber85Ghost button X position from right
floatButtonYnumber2Ghost button Y position from top
font- Color, Size, HoverColoroptionalstringcommon text styling
iconHeight, iconWidth, iconColorstringoptionalIcon style

Keywords

FAQs

Package last updated on 28 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc