Nothing

Shadow style

Set local shadow offsets and tint.

Read as Markdown

Offsets are signed. A tint includes encoded sRGB color and alpha.

Example

Set a shared tint and displacement

Use an opaque amber tint and a positive y offset. With zero blur the partial alpha at (160, 27) is reproduced 44 units below at (160, 71).

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

Complete .nothing source · Sample checks

Usage context

Trait ShadowStyle in the scene format type model.

Related pages in this reference are <drop-shadow>, <inner-shadow>, <box-shadow>.

Attributes

Property animation

dx

Value local units · If omitted 0 · Keys Scalar

Horizontal displacement, positive to the right.

dy

Value local units · If omitted 0 · Keys Scalar

Vertical displacement, positive down.

color

Value #RRGGBBAA · Required · Keys Color channels

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

Specifications

On this page