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…
Show HN: Embed a snow effect on your website
51–60 of 83 posts
Re: Show HN: Embed a snow effect on your website
#52Please don't use this: it more than doubles CPU usage of Firefox.
https://www.dropbox.com/s/d3fec6znlleulgt/2022-12-12T11-28-4...
Re: Show HN: Embed a snow effect on your website
#53Earlier 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!
Re: Show HN: Embed a snow effect on your website
#54Re: Show HN: Embed a snow effect on your website
#55I 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…
Re: Show HN: Embed a snow effect on your website
#56Please don't use this: it more than doubles CPU usage of Firefox.
Re: Show HN: Embed a snow effect on your website
#57I 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
#58Re: Show HN: Embed a snow effect on your website
#59Ahh, 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 :)
Strange coincidence, I was thinking about fixing that today...