Nothing

<drop-shadow>

Composite the input above a tinted, offset blur of its alpha.

Read as Markdown

A drop shadow blurs and offsets the input alpha, tints it, then composites the input above it. The next filter operation receives both.

Syntax

Move a sharp cast below the input

With sigma zero, the translucent source at (160, 27) casts a sharp shadow at (160, 71). This source and cast both have alpha 128.

<drop-shadow dx="0" dy="44" sigma="0" color="#F9AB52FF"/>

Complete .nothing source · Sample checks

Usage context

Allowed parents are <filter>.

Includes Gaussian blur, Shadow style.

Attributes

Property animation

sigma

Value local units · If omitted 0 · Keys Scalar · Declared by Gaussian blur

Nonnegative Gaussian standard deviation. Zero copies the input to the blur stage.

dx

Value local units · If omitted 0 · Keys Scalar · Declared by Shadow style

Horizontal displacement, positive to the right.

dy

Value local units · If omitted 0 · Keys Scalar · Declared by Shadow style

Vertical displacement, positive down.

color

Value #RRGGBBAA · Required · Keys Color channels · Declared by Shadow style

Required shadow tint in encoded sRGB with linear alpha. The filter converts the sampled color to its working space.

Children

ElementsCardinalityDeclared byRole and source order
<animate>Zero or moreAnimationA track targets one keyable property on this owner. For equal first-key times, the later track in document order wins. Evaluating animation tracks

Specifications

On this page