Using easing for more than just CSS transitions
kilianvalkhof.com
kilianvalkhof.com
This is wrong. Yes, linear gradients are everywhere, even in nearly every professional graphic design tool, which is unfortunate since they are almost always the wrong choice. Box shadows, on the other hand, tend to be based on Gaussian blurs, which certainly doesn’t create a linear transition. This is also the way the CSS box-shadows spec say they should work: https://drafts.csswg.org/css-backgrounds-3/#shadow-blur
If you compare the regular box shadow to the stepped example, it’s very clear that the gaussian blur doesn’t look nearly as natural as the multi stepped one.
Why?
In general this isn't an issue since most designers will either just stretch the gradient out or add additional gradient control points to adjust to fall-off manually.
There's a figma plugin out now as well: https://www.figma.com/c/plugin/788830704169694737/SmoothShad...
Am I the only one who can't tell the different between them (Easing for box shadows)?
Quickly in the browser giving the <p> below a margin-top of 150px and then moving it over a white part of the background (or making it white if you like), the effect becomes more obvious and it does look a bit blockier around the edges to me in the linear example. I would prefer the second as I'm seeing it.