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

dropdown_menu_animations

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dropdown_menu_animations

add various dropdown menu animations very easily

  • 1.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#what is this ?

Apply various animations to your dropdown menus very easily. Animation will be applied to the whole menu, not each item.

#installation

npm install --save-dev dropdown_menu_animations

Then...

import { dropdownAnimateWholeMenu } from 'dropdown_menu_animations';

dropdownAnimateWholeMenu();

Then...

Add the class of your choice between 'rotateY' / 'rotateY' / 'scale' / 'scaleDown' to each dropdown container, depending on the animation you want to apply to your dropdown. Every dropdown can then have a different animation.

<div class="dropdownBtn">
  Menu
  <div class="dropdown-container rotateY">
    <a href="" class="list-item-1">Home</a>
    <a href="" class="list-item-2">Contact</a>
    <a href="" class="list-item-3">More</a>
    <a href="" class="list-item-4">Infos</a>
  </div>
</div>

The dropdown-containers elements must have their css display property set to none :

.dropdown-container {
    display : none;
}

Keywords

FAQs

Package last updated on 31 Oct 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