# Fireworks Component 🎆

**URL:** https://meta.discourse.org/t/fireworks-component/174598
**Category:** Theme component
**Created:** [December 30, 2020, 1:16pm UTC](https://meta.discourse.org/t/fireworks-component/174598 "2020-12-30T13:16:38Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![meghna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meghna/32/453356_2.png) [@meghna](https://meta.discourse.org/u/meghna)
#### Post date: [December 30, 2020, 1:16pm UTC](https://meta.discourse.org/t/fireworks-component/174598/1 "2020-12-30T13:16:38Z")

</div>

What better way to celebrate the New Year’s eve than fireworks! 🎆

Here’s a component that adds fireworks on Discourse forum.

The source code is inspired from Eddie’s [Pure CSS Fireworks](https://codepen.io/yshlin/pen/ylDEk).

Happy New Year 2021! 🎉

| | | |
| --- | --- | --- |
| 🕶 | **Preview** | [Preview on theme creator](https://theme-creator.discourse.org/theme/meghna/fireworks) |
| 🔗 | **Github Repo** | [discourse-fireworks](https://github.com/meghnaAJ/discourse-fireworks) |
| 🛠 | **Install Guide** | [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |

---

<div class="post-metadata">

### Author: ![Zup](https://avatars.discourse-cdn.com/v4/letter/z/c37758/32.png) [@Zup](https://meta.discourse.org/u/Zup)
#### Post date: [March 20, 2021, 12:09am UTC](https://meta.discourse.org/t/fireworks-component/174598/2 "2021-03-20T00:09:03Z")

</div>

would be cool if this triggered for a few seconds every time a badge is earned

---

<div class="post-metadata">

### Author: ![Tiago\_santos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tiago_santos/32/249753_2.png) [@Tiago\_santos](https://meta.discourse.org/u/Tiago_santos)
#### Post date: [October 12, 2022, 2:14am UTC](https://meta.discourse.org/t/fireworks-component/174598/4 "2022-10-12T02:14:27Z")

</div>

@Don  
if a badge is earned your [theme FKB PRO](https://meta.discourse.org/t/fkb-pro-social-theme/234323)  
very usefull

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [December 31, 2023, 3:40pm UTC](https://meta.discourse.org/t/fireworks-component/174598/5 "2023-12-31T15:40:54Z")

</div>

Doesn’t work on iPhone (at least).

Well, next year then.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [December 31, 2023, 5:46pm UTC](https://meta.discourse.org/t/fireworks-component/174598/6 "2023-12-31T17:46:32Z")

</div>

You can try this [fork](https://github.com/Arkshine/discourse-fireworks/) @Jagster:

URL: `https://github.com/Arkshine/discourse-fireworks`  
branch: `mobile-support-and-settings`

Click on Advanced button to provide the branch name here:

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/a/4/2a48f7893f500ee994c7c5f2f5f21278f4935279.png)

Mobile is supported, and I added a bunch of basic settings (particle count/size, firework width/height, and fall distance) for both desktop and mobile.

I will consider making a proper PR (and eventually other settings) on the original repository later!

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [January 1, 2024, 6:41pm UTC](https://meta.discourse.org/t/fireworks-component/174598/7 "2024-01-01T18:41:53Z")

</div>

> [@Arkshine](#):
>
> Mobile is supported, and I added a bunch of basic settings (particle count/size, firework width/height, and fall distance) for both desktop and mobile.

Hm, I tried but I do not see any fireworks and also no settings.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [January 1, 2024, 6:44pm UTC](https://meta.discourse.org/t/fireworks-component/174598/8 "2024-01-01T18:44:03Z")

</div>

No worries. I should have explained how to install it.

Make sure you click on `Advanced` and copy/paste the branch name:

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/7/f/67fa13ed9c72b47a2648ccc9dd292dbc4305ecfb.png)

Note: This will install another Theme component; you might want to disable the old one for now. 👍

---

<div class="post-metadata">

### Author: ![Aaron\_Walsh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aaron_walsh/32/312661_2.png) [@Aaron\_Walsh](https://meta.discourse.org/u/Aaron_Walsh)
#### Post date: [January 1, 2024, 7:04pm UTC](https://meta.discourse.org/t/fireworks-component/174598/9 "2024-01-01T19:04:39Z")

</div>

The implementation of mobile support and settings is absolutely superb. It functions perfectly on my mobile device now, with dimensions that are impeccably suited, without any hint of being overwrought.

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [January 1, 2024, 8:14pm UTC](https://meta.discourse.org/t/fireworks-component/174598/10 "2024-01-01T20:14:21Z")

</div>

> [@Arkshine](#):
>
> I should have explained how to install it.

You did. I did not notice the branch, sorry. Thank you for making this clear. 🙂 Looks great now, thank you a lot! An official PR would be great. 🙂

---

<div class="post-metadata">

### Author: ![Kartoon](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@Kartoon](https://meta.discourse.org/u/Kartoon)
#### Post date: [February 8, 2024, 6:31am UTC](https://meta.discourse.org/t/fireworks-component/174598/11 "2024-02-08T06:31:56Z")

</div>

I think this would be better if you could adjust the frequency somehow it’s (imo) fairly obnoxious but still cool

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [December 28, 2024, 9:46pm UTC](https://meta.discourse.org/t/fireworks-component/174598/12 "2024-12-28T21:46:37Z")

</div>

One year after last new year 😏

Arkshine’s fork works nicely. But yet original one is desktop-only.

Either the PR in needed or the OP could be edited including information of the fork. Both solutions are good.

---

<div class="post-metadata">

### Author: ![meghna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meghna/32/453356_2.png) [@meghna](https://meta.discourse.org/u/meghna)
#### Post date: [December 30, 2024, 4:15am UTC](https://meta.discourse.org/t/fireworks-component/174598/13 "2024-12-30T04:15:30Z")

</div>

> [@Jagster](#):
>
> Either the PR in needed

I created [the PR](https://github.com/MeghnaAJ/discourse-fireworks/pull/2) on @Arkshine’s behalf and merged it. Updating the component should work for mobile as well.

Thanks again, Arkshine.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [December 30, 2024, 3:28pm UTC](https://meta.discourse.org/t/fireworks-component/174598/14 "2024-12-30T15:28:29Z")

</div>

Thanks @meghna! I have completely forgotten. 😄

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [February 18, 2025, 11:47pm UTC](https://meta.discourse.org/t/fireworks-component/174598/15 "2025-02-18T23:47:44Z")

</div>

@meghna I’ve opened a PR to add an option to use tsParticles’ fireworks:  
[https://github.com/MeghnaAJ/discourse-fireworks/pull/3](https://github.com/MeghnaAJ/discourse-fireworks/pull/3)

---

<div class="post-metadata">

### Author: ![meghna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meghna/32/453356_2.png) [@meghna](https://meta.discourse.org/u/meghna)
#### Post date: [February 19, 2025, 5:10am UTC](https://meta.discourse.org/t/fireworks-component/174598/16 "2025-02-19T05:10:19Z")

</div>

Thanks Nate! I’ll take a look. 👍

---

<div class="post-metadata">

### Author: ![meghna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meghna/32/453356_2.png) [@meghna](https://meta.discourse.org/u/meghna)
#### Post date: [March 7, 2025, 1:34pm UTC](https://meta.discourse.org/t/fireworks-component/174598/17 "2025-03-07T13:34:43Z")

</div>

I’ve merged the PR, thanks for the improvements, Nate! 🎆

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [March 7, 2025, 1:43pm UTC](https://meta.discourse.org/t/fireworks-component/174598/18 "2025-03-07T13:43:41Z")

</div>

Thanks a bunch!

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [December 27, 2025, 12:56pm UTC](https://meta.discourse.org/t/fireworks-component/174598/19 "2025-12-27T12:56:03Z")

</div>

I just activated the Fireworks component and see the following warning:

> **[Admin-Hinweis]** Theme [‘discourse-fireworks’](https://www.sidemount-forum.com/admin/customize/themes/62?safe_mode=no_themes) enthält Code, der aktualisiert werden muss. (ID:discourse.script-tag-discourse-plugin) ([_mehr erfahren_](https://meta.discourse.org/t/366482))

> [THEME 62 ‘discourse-fireworks’] DEPRECATION NOTICE: Adding JS code using is deprecated. Move this code to a dedicated JavaScript file. [deprecation id: discourse.script-tag-discourse-plugin] [info: [Modernizing inline script tags for templates & JS API](https://meta.discourse.org/t/366482)]

Is it possible to get an update? I myself do not understand enough to make a PR. 🙈

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [January 1, 2026, 4:05pm UTC](https://meta.discourse.org/t/fireworks-component/174598/20 "2026-01-01T16:05:14Z")

</div>

I’ve had a fix and refactor for this for a couple days in my repo, but finally got around to creating a PR to this one. sorry i know it’s already Jan 1st. lol 🤦🏻‍♀️

[https://github.com/MeghnaAJ/discourse-fireworks/pull/4](https://github.com/MeghnaAJ/discourse-fireworks/pull/4)

not sure about the acceptance tests though 🙈
