This theme component adds some animated snow to your forum.
Warning: the animations will increase browser CPU usage
Javascript mode (shared by @cjk77 here):
CSS Mode (adapted from here)
This theme component adds some animated snow to your forum.
Warning: the animations will increase browser CPU usage
Javascript mode (shared by @cjk77 here):
CSS Mode (adapted from here)
Thanks - now with snow
Installation:
Go to: /admin/customize/themes
Choose Compontes - add Install.
Paste in the link: https://github.com/davidtaylorhq/discourse-snow-theme.git
Go back to admin/customize/themes and find your theme.
Click it and you can customize your theme.
Scroll down
Add the new component to your theme.
And your have
I’ve got a couple of users using Firefox and Opera where this isn’t working (configured with js-mode), but the codepen example of the code does work. Works fine in Chrome. Any ideas?
ETA: Both users have confirmed that css mode works for them
It seems to be a Chrome-only component. On Firefox, with JS-mode, there’s nothing, and with CSS mode there’s a wall of jerky snow flakes that covers the screen, so it’s not really usable.
It is now updated so that js-mode works for Firefox. I haven’t tested Opera, but I suspect the same fix will help there as well.
Can confirm it’s now working for both of my users, Firefox and Opera. Thanks for the fix.
I use Opera,
looked great but as David noted
the CPU is too much,
1% without up to 39% with,
Sadly had to go
is there a way to make this have random fireworks instead of snow?
and my CPU never increased with the snow, used it on desktops and phones, my entire forum loved it, and not one complaint about CPU usage
Hi! I love this, it’s adorable and really brings things to life. I’m wondering, however, if it’s possible to make it appear only to the right and left/in the unused space beside the board (or go behind it)? That way it doesn’t snow all over the text and make reading difficult.
Seems to work fine with the latest discourse release…
Pretty love this theme component, but is there a way that change the “point” (or should I say “dot”?) to real snow icon?
Is there a way to slow the snow down more so it is not so distracting? Kind of a lazy snow? or a way for users to turn off the snow themselves so some can enjoy it while the others for whom it causes problems can turn it off?
Are you using the CSS or JS version?
switched from JS to CSS! But we can try either, whichever is easier. @famousamos.1 FYI
@dennisjbr on it for me - I should have asked him first, but my list of things to be done is huge. He helps us with our site.
The CSS version is easier to change, but that’s not the same effect.
If you are okay with the CSS version and want to slow down the fall, add this CSS to your theme or a new theme component and adjust the value to your needs. The higher the value, the slower.
#snow {
animation: snow 60s linear infinite;
}
Thank you so much