
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
dom-confetti
Advanced tools
Trigger confetti explosions in the DOM.
import { confetti } from 'dom-confetti';
const button = document.querySelector(".my-button")
button.addEventListener("click", () => confetti(button))
This will trigger a confetti explosion every time a button is clicked.
https://daniel-lundin.github.io/react-dom-confetti/
confetti(root, config = {})
root should be the DOM element to start the explosion at, and
config, if given, may be an object specifying the following options:
angle - direction of the explosion in degrees, defaults to 90.spread - spread of the explosion in degrees, defaults to 45.startVelocity - Initial velocity of the particles, defaults to 45.width: - width of the confetti elements as css string, defaults to 10px.height: - height of the confetti elements as css string, defaults to 10px.perspective - perspective of root element.height: - height of the confetti elementselementCount - Number of particle elements, defaults to 50.decay - deprecated - Decrease in velocity per frame, defaults to 0.9 (Use of this will disable dragFriction)dragFriction - Decrease in velocity proportional to current velocity, default to 0.1duration - Duration in milliseconds, defaults to 3000stagger - Delay for each fetti in milliseconds, defaults to 0.random - Randomization function, defaults to Math.randomcolors - An array of color codes, defaults to ['#a864fd', '#29cdff', '#78ff44', '#ff718d' '#fdff6a']Returns a promise that resolves once the confetti has completed its fade out.
License MIT, copyright Daniel Lundin 2019
FAQs
confetti with dom elements
The npm package dom-confetti receives a total of 45,104 weekly downloads. As such, dom-confetti popularity was classified as popular.
We found that dom-confetti demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.