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

dropdown_menus_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_menus_animations

apply animations to your dropdown menus easily

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
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, and on hover.

Installation

npm install --save-dev dropdown_menus_animations

Then...

import { setDefaultStylesToDropdownElements, dropdownAnimateWholeMenu } from 'dropdown_menus_animations';

setDefaultStylesToDropdownElements();
dropdownAnimateWholeMenu();

Requirements

Your html dropdowns should have the following structure :

<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>
  • a dropdown-button div containing the whole dropdown menu with the class 'dropdown-btn'
  • inside of the dropdown-button div, a dropdown-container div with the class 'dropdown-container'
  • inside of the dropdown-container div, the dropdown elements

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.

Keywords

FAQs

Package last updated on 21 Nov 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