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

@aofl/drawer

Package Overview
Dependencies
Maintainers
2
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aofl/drawer

The element toggles content between an open and closed state. Opening and closing animations are provided as classes to allow for any possible method of toggling content.

  • 3.5.0-beta.22
  • beta
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
59
decreased by-19.18%
Maintainers
2
Weekly downloads
 
Created
Source

@aofl/drawer

The <aofl-drawer> element toggles content between an open and closed state. Opening and closing animations are provided as classes to allow for any possible method of toggling content.

Api Documentation

Examples

Attributes

AttributesTypeDefaultDescription
openBoolean'null'State of content inside drawer
triggerString'animate'Classname used to trigger the opening and closing animations
openingStringClassname of the opening animation
closingStringClassname of the closing animation

Events

NameTriggered Byvalue
changeanimationEnd, transitionEndtarget.open={true,false}

Slots

NameFallback ContentDescription
The content to be displayed when toggling the drawer

Defining animation classes

To animate the drawer 4 css selectors need to be added. Here is an example for a drawer with the following attributes:

<aofl-drawer opening="ease-in" closing="ease-out" .open="${context.open}"></aofl-drawer>

.ease-in {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.ease-in.animate {
  opacity: 1;
}

.ease-out {
  opacity: 1;
  transition: opacity .3s ease-out;
}

.ease-out.animate {
  opacity: 0;
}

Keywords

FAQs

Package last updated on 02 Mar 2020

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