You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
MarieMalarme 94cb1a8864
baby-shower: fix gif link
4 years ago
..
README.md baby-shower: fix gif link 4 years ago
baby-shower.gif baby-shower: add gif for expected output 4 years ago

README.md

Baby shower

Instructions

It's time to celebrate the arrival of your creation in this world ; let's organize a baby shower!

But you already worked a lot to give birth, so now you need some help from others to set the party. You're going to use a JS library - meaning some code made by other people, made available for anyone to use. Very cool & helpful, isn't it? There is a huge amount of packages of any type - really any - and it's usually quite simple to install and use. The one we're going to use today is canvas confetti.

From your script, import the package as indicated in the documentation, and launch the function to pop confetti when the page loads. Then, add an event listener on keydown event that triggers the same confetti popping function any time a key of the keyboard is pressed.

Code examples

Import code from libraries & use it:

// import and use the `hello` function from a library
import { hello } from 'hello-library-url'

hello()

Expected output

This is what you should see in the browser:

Notions