box-shadow generator online | 86 beautiful box-shadows
What is a box-shadow in CSS?
The box-shadow is a CSS property which adds a shadow effect around an element's frame. you'll set multiple effects separated by commas. A box-shadow is described by X and Y offsets relative to the element, blur and spread radius, and color.
Box-shadow Syntax
Offset-x
offset-x is just a box-shadow value where shadows go on the horizontal way. It means whenever you input the offset-x value it determines to follow in the left or right direction. For eg,
box-shadow: 20px 0px 52px -5px #a3a3a3 ;
Picture reveals the detail on box-shadow offset-x
Offset-y
Same as the above one offset-x moves onto a horizontal side thus offset-y moves in the vertical direction which is top to bottom
box-shadow: 0px 33px 27px -5px #808080 ;
Picture reveals the detail on box-shadow offset-y
Adding a Blur Value
If you want the shadow to look a little more realistic, You have to adjust the blur values.
box-shadow: 0px 0px 40px -5px #757575 ;
Picture reveals the detail on box-shadow blur value
Adding a Spread Value
Spread value in the CSS box-shadow works as size or scale up or down. you can make a box shadow either small or large it depends on your required design.
box-shadow: 0px 0px 27px 33px #bdbdbd ;
Picture reveals the detail on box-shadow spread value
Adding a Color
You can add color to box-shadow either on Hex Value or RGB value.
box-shadow: 0px 0px 27px -5px #ff9999 ;
Picture reveals the detail on box-shadow color value