0.1.5 • Published 4 years ago

lit-confetti v0.1.5

Weekly downloads
224
License
Apache-2.0
Repository
github
Last release
4 years ago

<lit-confetti>

Confetti animation as a web component

npm Published on webcomponents.org

Install

yarn add lit-confetti

How to Use

First, import the module in your page.

<script type="module" src="https://unpkg.com/lit-confetti/dist/esm/index.js"></script>

Then, add the element to the page.

<lit-confetti
  gravity=1
  count=40
></lit-confetti>
AttributeTypeDescription
gravitynumberHow fast the confetti papers fall
countnumberLimit for the max amount of confetti papers to create at once
gradientbooleanConfetti papers will have a gradient between 2 colors set
colorsstring[] #RRGGBB color formatPossible colors to choose from when generating a confetti paper. By default rainbow colors are used.

TODO

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago