Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@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.
The npm package @aofl/drawer receives a total of 51 weekly downloads. As such, @aofl/drawer popularity was classified as not popular.
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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.