Earlier quoted context omitted.
Their 1998 website probably used tables with celllpadding, and it was “good enough” at the time. But I suspect they’ve benefitted by changing it. However, since neither of us have data, it’s all subjective. For those that do have data, they’ve decided spending millions on it is worth it.
I disagree, please don’t tangentially deny my data points as “no data”. Four random vendors of “premium brand ” not doing today what was spoken about in this thread (properly casting shadows as described in tfa has zero business value for premium brands) is not no-data.
Designing Beautiful Shadows in CSS
31–40 of 67 posts
Re: Designing Beautiful Shadows in CSS
#32"In my humble opinion, the best websites and web applications have a tangible “real” quality to them. There are lots of factors involved to achieve this quality, but shadows are a critical ingredient." Yet his own site style is totally flat?
Re: Designing Beautiful Shadows in CSS
#33"Layered shadows are undeniably beautiful, but they do come with a cost. If we layer 5 shadows, our device has to do 5x more work!
This isn't as much of an issue on modern hardware, but it can slow rendering down on older inexpensive mobile devices."
5x more work is always 5x more work. Can we just stop downplaying it?
Re: Designing Beautiful Shadows in CSS
#34Re: Designing Beautiful Shadows in CSS
#35TypeError: null is not an object (evaluating 'e.current.getBoundingClientRect')
Gotta love React, TypeScript and all this wonderful modern frontend stack.
So resilient.
Re: Designing Beautiful Shadows in CSS
#36> One more quick tip: unlike box-shadow, the filter property is hardware-accelerated in Chrome, and possibly other browsers. In Firefox, everything is hardware-accelerated. And the `will-change` property is largely obsolete. (I personally wish they had stuck to the old translateZ(0) hack which was obviously a hack rather than defining will-change, since WebRender—what lets Firefox do all the rendering on the GPU—was…
Re: Designing Beautiful Shadows in CSS
#37Are there any post processing libraries that can add this? It would be super interesting to treat elements on the page in 3 dimensions
Re: Designing Beautiful Shadows in CSS
#38I get a white page with unexpected error on desktop Safari. TypeError: null is not an object (evaluating 'e.current.getBoundingClientRect') Gotta love React, TypeScript and all this wonderful modern frontend stack. So resilient.
Re: Designing Beautiful Shadows in CSS
#39> If CSS had a real lighting system, we would specify a position for one or more lights. Sadly, CSS has no such thing. Are there any post processing libraries that can add this? It would be super interesting to treat elements on the page in 3 dimensions
Arguably what's missing is the ability to use blend modes with shadows, so that you don't need to explicitly know anything about the elements that the shadows are rendered on.
Edit: Found a Stackoverflow answer that shows a way to somewhat emulate this using a pseudo element: https://stackoverflow.com/questions/52838406/apply-blend-mod...
Re: Designing Beautiful Shadows in CSS
#40It's common for that light source to be above and slightly to the left Is this still the case? Windows used to have an almost 45° lighting angle, but more recently (MacOS, Material Design) the more common case is the light source shining from the top.
Top-left was used in the past because the only lighting hints was the edge colours, and this looks weird with a light that is directly above, so typically a 45-degree light was assumed.
In modern design, there is very little edge colouring used, and instead the light determines only shadow positioning. And shadows look perfectly fine with a light positioned directly above. This placement feels a bit more natural, as it doesn't introduce an arbitrary sideways bias.