0.10.1 • Published 2 years ago

react-confetti-cannon v0.10.1

Weekly downloads
640
License
MIT
Repository
-
Last release
2 years ago

🎉🎉🎉 CONFETTI 🎉🎉🎉

yarn install react-confetti-cannon
const ConfettiLayer = () => {
  const launchPoints = useMemo(
    () => [
      () => ({
        x: window.innerWidth / 2,
        y: window.innerHeight * 0.9,
        angle: 0,
      }),
    ],
    []
  )

  return (
    <Confetti
      launchPoints={launchPoints}
      // burstAmount={150}
      // afterBurstAmount={100}
      // onEnd={() => {}}
      // gravity={new Vector2(0, 0.1)}
    />
  )
}
0.10.1

2 years ago

0.10.0

3 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago