← ツール一覧へ戻る

CSSボックスシャドウ生成

オフセット、ぼかし、広がり、色を調整してボックスシャドウを作成します。

What is CSS Box Shadow Generator?

CSS Box Shadow Generator lets you visually design box shadows by adjusting offset, blur radius, spread radius, and color. See a live preview and copy the finished box-shadow CSS property value.

Parameter reference

  • Horizontal offset: positive shifts shadow right, negative shifts left.
  • Vertical offset: positive shifts shadow down, negative shifts up.
  • Blur radius: higher values produce a more diffuse, softer shadow.
  • Spread radius: positive expands the shadow size; negative contracts it.
  • Color: use rgba for transparency (e.g. rgba(0,0,0,0.2)).
  • Inset: makes the shadow appear inside the element rather than outside.

Notes

  • Multiple shadows can be layered by separating values with commas in CSS.
  • Box shadow does not affect layout — it is purely visual.
  • Use filter: drop-shadow() for shadows on non-rectangular elements like PNG images.

FAQ

What is the difference between blur and spread?
Blur softens the shadow's edge. Spread changes the size of the shadow before blurring. A spread of 0 with high blur produces a soft glow; a high spread with low blur produces a hard, extended shadow.
How do I create a subtle elevation shadow like Material Design?
Use a low-opacity black with a slight vertical offset and moderate blur, e.g. 0 2px 8px rgba(0,0,0,0.15). Layer multiple shadows of different sizes for more realistic depth.
Does box-shadow affect performance?
Box shadows are GPU-accelerated in modern browsers and have minimal performance impact. Animating box shadows can be slower — prefer animating opacity or transform for smooth transitions.

概要

オフセット・ぼかし・広がり・色・不透明度を調整しながらCSSボックスシャドウを視覚的にデザインし、生成されたCSSをコピーできます。カードやモーダルの立体感づくりに便利です。

使い方

  1. 水平・垂直のオフセットを調整します。
  2. プレビューを見ながら、ぼかし・広がり・色・不透明度を調整します。
  3. 生成された box-shadow のCSSをコピーします。

使用例

補足

よくある質問

spread(広がり)は何をする値ですか?
正の値はぼかし前に影を全方向へ拡大し、負の値は縮小します。
影を複数重ねられますか?
できます。CSSはカンマ区切りで複数指定できるため、各レイヤーをここで作って手動で結合してください。
影は表示性能に影響しますか?
静的な影はGPU処理で軽量です。避けるべきは影の頻繁なアニメーションです。

Embed this tool

Paste this iframe into any HTML page to embed CSSボックスシャドウ生成 on your site:

関連ツール