Socket
Book a DemoInstallSign in
Socket

react-raining-confetti

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-raining-confetti

React component for adding raining confetti to your application

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
116
-2.52%
Maintainers
1
Weekly downloads
 
Created
Source

react-raining-confetti

react-raining-confetti is a react base component that add raining confetti to your application using canvas. with zero dependencies.

codesandbox demo -> Demo

Installation

Use the package manager npm to install .

npm i react-raining-confetti 

Usage

import React from "react";
import { ConfettiCanvas } from "react-raining-confetti";

export default function App() {
  return (
    <div className="App">
        <h1 style={{ top: '50%', left: "50%", position: 'absolute' }}> It's confetti time!!! </h1>
        <ConfettiCanvas active={true} fadingMode="LIGHT" stopAfterMs={5000} />
    </div>
  );
}
propstypedefault valueinfo
activebooleantrueUse to confetti start/stop falling
fading'OFF', 'LIGHT', 'DARK''OFF'Fading confetti color
stopAfterMsnumber0Time in ms to auto stop the confetti, should be larger than 1000 to cool effect and 0 to disabled autostop.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Keywords

react

FAQs

Package last updated on 27 Dec 2020

Did you know?

Socket

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.

Install

Related posts