Componente de tema de neve de inverno ❄

This theme component adds some animated snow to your forum.

:christmas_tree: Warning: the animations will increase browser CPU usage :santa:

:eye: Demo

:link: Repository

Javascript mode (shared by @cjk77 here):

CSS Mode (adapted from here)

37 curtidas

Thanks - now with snow :smiley:

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 :snowflake:

10 curtidas

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

1 curtida

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.

3 curtidas

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.

14 curtidas

Can confirm it’s now working for both of my users, Firefox and Opera. Thanks for the fix.

5 curtidas

I use Opera,

looked great but as David noted

image

image
the CPU is too much,

1% without up to 39% with,

Sadly had to go :pensive:

6 curtidas

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

10 curtidas

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.

4 curtidas

Seems to work fine with the latest discourse release…

2 curtidas

Adoro este componente temático, mas existe uma maneira de alterar o “ponto” (ou devo dizer “símbolo”?) para um ícone de neve real?

1 curtida

Existe uma maneira de diminuir a velocidade da neve para que ela não seja tão distrativa? Algo como uma neve preguiçosa? Ou uma maneira para os usuários desativarem a neve eles mesmos, para que alguns possam aproveitá-la enquanto outros, para quem ela causa problemas, possam desativá-la?

1 curtida

Você está usando a versão CSS ou JS?

trocado de JS para CSS! Mas podemos tentar qualquer um, o que for mais fácil. @famousamos.1 FYI

3 curtidas

@dennisjbr cuidando disso para mim - eu deveria ter pedido a ele primeiro, mas minha lista de tarefas é enorme. Ele nos ajuda com nosso site.

3 curtidas

A versão CSS é mais fácil de alterar, mas não tem o mesmo efeito. :thinking:

Se você estiver satisfeito com a versão CSS e quiser diminuir a velocidade da queda, adicione este CSS ao seu tema ou a um novo componente de tema e ajuste o valor às suas necessidades. Quanto maior o valor, mais lenta será a queda.

#snow {
    animation: snow 60s linear infinite;
}
6 curtidas

Muito obrigado

3 curtidas