DEV Community

Cover image for JSConfetti could be downloaded from CDN πŸŽ‰
Vladimir Nikitin
Vladimir Nikitin

Posted on

8 2

JSConfetti could be downloaded from CDN πŸŽ‰

Hi everyone!

Wanted to share, that my open-source library JSConfetti is now could be downloaded from CDN:

<script src="https://cdn.jsdelivr.net/npm/js-confetti@latest/dist/js-confetti.browser.js"></script>
Enter fullscreen mode Exit fullscreen mode

After that, JSConfetti class could be accessed as global variable, and you can fire confetti by calling method addConfetti() on JSConfetti class instance

const jsConfetti = new JSConfetti()

jsConfetti.addConfetti()
Enter fullscreen mode Exit fullscreen mode

JSConfetti works without any config, but could be configurable, check out documentation on GitHub

Links: GitHub | NPM | Library Website | CodeSandbox Playground

Top comments (2)

Collapse
 
drsimplegraffiti profile image
Abayomi Ogunnusi β€’

Nice.....

Collapse
 
dendihandian profile image
Dendi Handian β€’

I was looking for this kind of JS package a year ago for a Hackathon project on DEV.to. Bookmarked.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay