Adjust Shadow Properties
Control X/Y offset, blur radius, spread, and color of your shadow.
Advertisement
Color is combined with opacity in the output as rgba().
box-shadow: 0px 12px 24px 0px rgba(99, 102, 241, 0.35);
Pro Tip
Subtle shadows create depth without overwhelming designs. Use multiple layered shadows (2-3 layers) with different blur values for the most realistic effects.
Control X/Y offset, blur radius, spread, and color of your shadow.
See your shadow effect in real-time on the preview element.
Get the complete box-shadow CSS property to paste in your project.
CSS box-shadow adds depth and dimension to elements without extra markup. Modern designs use soft, layered shadows for realistic material design effects. The syntax is: box-shadow: x-offset y-offset blur spread color.
X-offset: horizontal distance, Y-offset: vertical distance, Blur: shadow softness, Spread: shadow size, Color: shadow color with optional opacity.
Multiple shadows can be layered by comma-separating values. 2-3 layers create the most realistic depth effects.
Complex shadows can impact performance on older devices. Use simple shadows and limit layering for better performance.
Advertisement