
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
Simple enter and exit animations using CSS transitions.
Define simple transitions in your CSS and trigger them with JavaScript.
<dialog></dialog>
import { enter, exit } from "debut-css";
const dialog = document.querySelector("dialog");
await enter(dialog, "fade");
await exit(dialog, "fade");
.fade { /* */ }
.fade--before-enter { /* */ }
.fade--enter {/* */}
.fade--after-enter {/* */}
.fade--before-exit { /* */ }
.fade--exit {/* */}
.fade--after-exit {/* */}
There are only two functions exported and they have the same signature.
function enter(node: HTMLElement, ...effects: string[]): Promise<void>;
function exit(node: HTMLElement, ...effects: string[]): Promise<void>;
The node is any HTML element and the reset of the arguments are strings that specify the names of the effects to apply to that node. The effect becomes the prefix for all the css classes that debut will generate and apply at the proper times. For example...
enter(el, "modal");
Will apply these CSS classes to 'el'.
.modal--before-enter {
// Define the starting point here
}
.modal--enter {
// Define the ending point and transition styles
}
.modal--after-enter {
// Define any styles that should remain after entering is finished.
}
Note: When calling enter or exit on an element with no transition-duration value, the promise reject with an error. It will wait for a 'transitionrun' event to fire before 100ms before throwing the error.
FAQs
Simple enter and exit animations using CSS transitions.
We found that debut-css demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.