Object

ComponentShadowOffset

The object for setting an offset value to use with a component shadow.

Properties

x
*

The x offset, as a value in SupportedUnits. Implementation is device dependent.

y
*

The y offset, as a value in SupportedUnits. Implementation is device dependent.

Discussion

Use the ComponentShadowOffset object to define an offset. A positive x value moves the content to the left, and a negative x value moves the content to the right. A positive y value moves the content up, and a negative y value moves the content down.

Example

{ "componentStyles": { "exampleStyle": { "backgroundColor": "#FFF", "shadow": { "color": "#33333350", "opacity": 0.33, "radius": "10cw", "offset": { "x": 2, "y": "10cw" } } } }}

See Also

Component Effects

object ComponentShadow

The object for creating a component shadow.