Skip to content

A library to add confetti animations to celebrate anything you want in your browser

Notifications You must be signed in to change notification settings

charliesbot/confetti

Repository files navigation

ReactFitti

Demo Animation

NPM JavaScript Style Guide

Install

npm install reactfitti

yarn add reactfitti

Usage

import React from "react";
import Confetti from "confetti";

const App = () => {
  return (
    <div>
      <Confetti />
    </div>
  );
};

export default App;

Props

Prop Type Optional Default Description
colors string[] Yes Random colors for the confetti papers
numberOfElements number Yes 250 Amount of pieces on the view

License

MIT © charliesbox

About

A library to add confetti animations to celebrate anything you want in your browser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published