Summary | Add fun to your community by having confetti where you click, using tsParticles. | |
Preview | Theme Creator | |
Repository | GitHub - NateDhaliwal/discourse-confetti-clicks | |
Install Guide | How to install a theme or theme component | |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
This theme component creates confetti where the user clicks or taps. The amount of confetti and the angle of spread of confetti can both be controlled using settings.
This TC creates more fun for your community to make it more interactive.
The confetti is made possible with tsParticles, a JS library for animating confetti, snow, lines and more.
Some assistance came from ask.discourse.com.
Settings:
confetti_amount
changes the amount of confetti on each click.
Try not to put too high a number, or there will be more lag with the confetti appearing and dispersing. 100-200 is a good range.
confetti_spread
changes the angle of which the confetti disperses. All numbers are in degrees. A value of360
causes the confetti to disperse in all directions. A value of1
causes the confetti to disperse and fall in a straight line.allowed_in
sets where the confetti can be used in. Enter the category slug(s) into this field. For multiple categories, separate the slugs with a|
(no spaces).
Leaving this field blank enables confetti in all pages.