News for hackers. Stuff that matters.
Re:React-sky: easy animated backgrounds by onion2k on Thursday November 22, 2018 @12:08AM (#18507989)
Great idea. :)

I'm working on something vaguely similar but for foreground effects - https://github.com/onion2k/react-neon/ - it's a library that adds a canvas over a component with an interactive effect. It's very early, and Chrome only because it relies on ResizeObserver (but that's going to change to use Mutation Observer very soon).

I added an example that puts Inigo Quilez's WebGL raymarched clouds on a fullscreen canvas yesterday. It makes my iMac sound like a jet engine. https://react-neon.ooer.com/fullscreen/clouds/

Re:React-sky: easy animated backgrounds by lucagez on Wednesday November 21, 2018 @07:18PM (#18507104)
react-sky is a react component that makes super easy the creation of animated backgrounds. Just pass some images and react-sky will do the job!

Live demo: https://codepen.io/lucagez/full/oQoRyK/

Re:React-sky: easy animated backgrounds by mr_ali3n on Wednesday November 21, 2018 @11:24PM (#18507843)
Nice, but why do you need react for this?
Re:React-sky: easy animated backgrounds by onion2k on Thursday November 22, 2018 @12:12AM (#18508000)
You don't, but it makes it easier to integrate in to some existing code. Usually these libraries are written for personal reasons (eg needing it yourself) and then open sourced. If you're making a React app at the time then it ends up being a React library.

One day I'm going to 'un-React' Neon (see my other comment), but until then it 'needs' it.

Re:React-sky: easy animated backgrounds by lucagez on Thursday November 22, 2018 @01:17AM (#18508228)
Exactly that (:
Re:React-sky: easy animated backgrounds by kentms on Thursday November 22, 2018 @12:42AM (#18508107)
Nice. Would be great if I could set a background image as well :)
Re:React-sky: easy animated backgrounds by lucagez on Thursday November 22, 2018 @01:15AM (#18508221)
You can! You can pass also the props "background" and in it you can pass a regular URL
Re:React-sky: easy animated backgrounds by kentms on Thursday November 22, 2018 @05:48PM (#18513061)
Great. Thanks.