<inner-shadow>
Tint the previous image inside its alpha silhouette.
An inner shadow uses offset blurred alpha to shade the previous image along its inner edges. Every input pixel retains its alpha.
Syntax
Slide tint across the image without changing alpha
At frame 0, (129, 27) is teal. At frame 12 the keyed offset is 6 and that point turns red. The neighboring translucent area at (160, 27) still has alpha 128.
<inner-shadow dx="0" dy="0" sigma="0" color="#FF0000FF">
<animate attributeName="dx" fill="freeze">
<key frame="0" value="0" ease="linear"/>
<key frame="24" value="12"/>
</animate>
</inner-shadow>Complete .nothing source · Sample checks
Usage context
Allowed parents are <filter>.
Includes Gaussian blur, Shadow style.
Attributes
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
| Elements | Cardinality | Declared by | Role and source order |
|---|---|---|---|
<animate> | Zero or more | Animation | A track targets one keyable property on this owner. For equal first-key times, the later track in document order wins. Evaluating animation tracks |