
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@aofl/drawer
Advanced tools
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.
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.
Attributes | Type | Default | Description |
---|---|---|---|
open | Boolean | 'null' | State of content inside drawer |
trigger | String | 'animate' | Classname used to trigger the opening and closing animations |
opening | String | Classname of the opening animation | |
closing | String | Classname of the closing animation |
Name | Triggered By | value |
---|---|---|
change | animationEnd, transitionEnd | target.open={true,false} |
Name | Fallback Content | Description |
---|---|---|
The content to be displayed when toggling the drawer |
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;
}
FAQs
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.
We found that @aofl/drawer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.