Skip to content

Commit

Permalink
build: prettier readme
Browse files Browse the repository at this point in the history
matteobruni committed Feb 7, 2023
1 parent 47a1984 commit a36216d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bundles/confetti/README.md
Original file line number Diff line number Diff line change
@@ -47,13 +47,13 @@ A note about `tsparticles-preset-confetti` can be made: it's not mandatory to in

Once the scripts are loaded you can set up `tsParticles` like the following examples:

```javascript
````javascript

** Easiest Way **

```javascript
confetti()
```
````
** Async Way, best practice **
@@ -136,13 +136,13 @@ The `confetti` first parameter can be an id and the second parameter a single `o
- `clubs`
- `diamonds`
- `text`
The default is to use both shapes in an even mix. You can even change the mix by providing a value such
as `['circle', 'circle', 'square']` to use two third circles and one third squares.
The default is to use both shapes in an even mix. You can even change the mix by providing a value such
as `['circle', 'circle', 'square']` to use two third circles and one third squares.
- `scalar` _Number (default: 1)_: Scale factor for each confetti particle. Use decimals to make the confetti smaller. Go
on, try teeny tiny confetti, they are adorable!
- `zIndex` _Integer (default: 100)_: The confetti should be on top, after all. But if you have a crazy high page, you
can set it even higher.
- `disableForReducedMotion` _Boolean (default: true)_: Disables confetti entirely for users
that [prefer reduced motion](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion).
And for those asking, yes you can paste your canvas-confetti code and migrate to tsParticles Confetti without changing a thing
And for those asking, yes you can paste your canvas-confetti code and migrate to tsParticles Confetti without changing a thing

0 comments on commit a36216d

Please sign in to comment.