+ 2

What is the purpose of spread in box-shadow?

1st Aug 2016, 2:54 PM
Abdullah Zakir
Abdullah Zakir - avatar
7 Réponses
+ 3
if you want to make a shadow around the box (box-shadow) you use.
2nd Aug 2016, 4:59 PM
HawkEye
HawkEye - avatar
+ 2
it gives little realistic feel to our shadow
29th Nov 2016, 9:13 AM
Prathamesh Khatavakar
Prathamesh Khatavakar - avatar
+ 1
In my opinion, Spread in box-shadow is the size of shadow.
2nd Aug 2016, 7:17 AM
DEA Raison
DEA Raison - avatar
+ 1
Spread is actually very useful. It increases the size of your box shadow by however many units you define. Ex: box-shadow: 10px 10px 5px 10px black; This creates a black shadow with a 5px blur that's offset 10 over and 10 down. By using spread you'll get a larger black shadow that fills in the 10px offset amount. When adding blur its good to add spread so the blurred shape doesn't look too small.
16th Sep 2016, 4:35 AM
Brendan Bax
Brendan Bax - avatar
+ 1
blur & spread here is a usefull code try it you will understand https://code.sololearn.com/WGioxTdHuKWl/#js
19th Dec 2016, 4:44 PM
Adnen Rebai
Adnen Rebai - avatar
- 4
who knows only god
27th Sep 2016, 1:19 PM
George Clyne
- 6
you don't need to use spread radius.only blur is sufficient
10th Aug 2016, 5:37 PM
Rohan Mahajan
Rohan Mahajan - avatar