Live data from Hacker News

Show HN: Embed a snow effect on your website

embed.im

51–60 of 83 posts

Re: Show HN: Embed a snow effect on your website

#51

For a friend's page a while ago we wanted one where the snow would accumulate on DOM elements (anything with a top border, or some such heuristic) but couldn't find one. A quick search finds none currently either (many where it accumulates at the bottom of the page/viewport or on/in a particular DOM element, but none that have it build up generically on DOM boxes. One of the many items in my huge pile of Things To Bo…

Don't stop there! It will need tiny householders to shovel the snow off when the accumulation is too deep, and for a stretch goal the cascading snow can induce avalanches. With enough feature creep you'll be able to declare version 1.0 complete the same day you hear the first cuckoo of spring.

Re: Show HN: Embed a snow effect on your website

#52
post #34

Please don't use this: it more than doubles CPU usage of Firefox.

Does it? It doesn't seem to affect mine at all. Edit: when the tab is focused it looks like it uses just under 4% of CPU in Firefox, and none when it's not focused. I don't know if that means 4% of total machine CPU or 4% of CPU that Firefox is using.

https://www.dropbox.com/s/d3fec6znlleulgt/2022-12-12T11-28-4...

Re: Show HN: Embed a snow effect on your website

#53
post #11

Earlier quoted context omitted.

That's good, because I miss a few things from back then. Like "Site under construction" gifs!

http://www.textfiles.com/underconstruction/ for all your construction needs!

on my website i used to have the opposite: a prominent line at the top stating that "this page is not under construction" along with one of those (not animated) workers with a shovel signs crossed out.

Re: Show HN: Embed a snow effect on your website

#55

I asked GPT what the source code does, was pretty impressed with the response >This code is a JavaScript program that creates a "snow" animation on a web page. When executed, the code generates a number of white, circular elements (which represent snowflakes) and animates them to move across the page, creating the illusion of snow falling. The snowflakes are given random positions, sizes, and animations to make the e…

Why is this downvoted? Is GPT the new thing to unconditionally hate now?

Re: Show HN: Embed a snow effect on your website

#57
post #55

I asked GPT what the source code does, was pretty impressed with the response >This code is a JavaScript program that creates a "snow" animation on a web page. When executed, the code generates a number of white, circular elements (which represent snowflakes) and animates them to move across the page, creating the illusion of snow falling. The snowflakes are given random positions, sizes, and animations to make the e…

Why is this downvoted? Is GPT the new thing to unconditionally hate now?

Because if you care what GPT says about something, you can ask it yourself.

Re: Show HN: Embed a snow effect on your website

#59
post #20
post #5

Ahh, adding snow effects to your websites with JS, the reason Javascript was actually invented in the first place, along with showing current time alongside your cursor ;).

Haha, thanks for another idea, cursor showing current time is what we all miss on our websites today :) PS. The JS is used just to generate and embed the code, snow effect is 100% CSS :)

Nice. I'll have to take a page out of your book: my homepage currently uses JS to animate underwater bubbles and uses 100% CPU.

Strange coincidence, I was thinking about fixing that today...

Post reply on HN