multilayer shadow in css

Solutions on MaxInterview for multilayer shadow in css by the best coders in the world

showing results for - "multilayer shadow in css"
Lina
23 Nov 2020
1/* Default box-shadow */
2.box {
3  box-shadow: 0 3px 3px rgba(0,0,0,0.2);
4}
5
6/* Create smoother box-shadows by layering multiple
7 * shadows with gradually increasing radius and offset */
8.shadow-5 {
9  box-shadow: 0 1px 1px rgba(0,0,0,0.12), 
10              0 2px 2px rgba(0,0,0,0.12), 
11              0 4px 4px rgba(0,0,0,0.12), 
12              0 8px 8px rgba(0,0,0,0.12),
13              0 16px 16px rgba(0,0,0,0.12);
14}
15