Live data from Hacker News

I made a smooth shadows generator

smoothshadows.com

21–30 of 48 posts

Re: I made a smooth shadows generator

#21
post #15

This is super cool and I'm definitely bookmarking it for later use :) I'd suggest moving the "copy css/figma/link" buttons to the right panel or at least making them more obvious (maybe by increasing contrast?) as I had trouble figuring out how to export the shadow I made.

I still couldn't figure out where those buttons are. Kept looking everywhere.

Re: I made a smooth shadows generator

#22

Do note that while modern browsers are pretty performant with this, the more you stack shadows the more your low end users pay for it. I can't recall which large site ran into it a few years ago, but the short gist is they struggled with scroll performance and in the end stacked shadows were to blame.

On this note, is there a way to do CSS profiling other than bisecting it all? Like some way to get the rendering times for each CSS rule or for each element and children?

Re: I made a smooth shadows generator

#28
post #13

What is "smooth" referring to? Looks a regular box shadow to me.

It is not. Regular box shadows don't have as much depth to them because the shadow colour is static. These "smooth" box shadows create multiple layers of box shadows to give the shadow a gradient of colour from dark (Closest to object) to light (Furthest from object). Set the opacity high, blur low and then play with the layers and you'll see the multiple box shadows. 0.5 opacity and 10 blur were the settings I used.

You can get much the same effect with a single layer by setting the blur high (and maybe increasing spread-radius, which this app doesn't have a setting for).

Possibly the multi-layer version is better -- I'd like to see a proper comparison -- but is it better enough to justify the cost?

Re: I made a smooth shadows generator

#29

One remark, when you copy the css and make a change and copy the css again, it doesnt show the changes in the copied css.

Hmm. Not able to reproduce this issue. Do you see the clipboard icon turning to checkmark on the second copy too? If not, then the browser blocked the second clipboard operation.

Re: I made a smooth shadows generator

#30
Turning the blur down, changing the shadow to a nice bright colour, turning up the number of layered shadows, and then wibbling the X and Y parameters around gives a nice oldschool Winamp Milkdrop plugin rotozoomer type effect.
Post reply on HN