Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
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.

latest
Source
npmnpm
Version
3.14.1
Version published
Maintainers
2
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

@aofl/element

FAQs

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