37
loading...
This website collects cookies to deliver better user experience
box-shadow
property.box-shadow
property, well, You can't.box-shadow
property simply produces a blurred silhouette of an object. You can change its length, color, blur, spread and offset nothing more. Then there's probably no way to create the Natural Super complex real Shadows through box-shadow
property.box-shadow
property by using commas and gradually increasing the blur-radius, offset to make shadows more realistic. Here's an example:/* Normal box-shadow */
.box {
box-shadow: 0 3px 3px rgba(0,0,0,0.2);
}
/* Layered Box-shadow */
box-shadow:
0 3.9px 4.6px rgba(0, 0, 0, 0.08),
0 12.3px 8.4px rgba(0, 0, 0, 0.056),
0 18.8px 19.2px rgba(0, 0, 0, 0.037),
0 22px 40px rgba(0, 0, 0, 0.019)
;