๐ŸŽ‰ ์ œ๋กœ ๊ตฌ์„ฑ JS ์ปฌ๋Ÿฌ ์ข…์ด ๋ถ€์Šค๋Ÿฌ๊ธฐ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

1119 ๋‹จ์–ด webdevfrontendjavascriptopensource
js confetti๋Š” ๊ฒฝ๋Ÿ‰๊ธ‰ ์ œ๋กœ ์„ค์ • ์†Œ์Šค ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ž…๋‹ˆ๋‹ค. confetti์— ์‚ฌ์šฉ๋˜๋ฉฐ ์˜์กด ํ•ญ๋ชฉ์ด ์—†์Šต๋‹ˆ๋‹ค.

GitHub:https://github.com/loonywizard/js-confetti

์‚ฌ์šฉ๋ฒ•


Thread ๋˜๋Š” npm์„ ํ†ตํ•ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜
yarn add js-confetti
JSconfetti ํด๋ž˜์Šค์˜ ์ธ์Šคํ„ด์Šค๋ฅผ ์ดˆ๊ธฐํ™”ํ•˜๊ณ  addConfetti ๋ฉ”์„œ๋“œ๋ฅผ ํ˜ธ์ถœํ•ฉ๋‹ˆ๋‹ค.
import JSConfetti from 'js-confetti'

const jsConfetti = new JSConfetti()

jsConfetti.addConfetti()
์ด๋ ‡๊ฒŒ!

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ