Contents

TextShadowOffset

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

Declaration

object TextShadowOffset

Properties

NameTypeDescription
x Requirednumber

The x offset, as a value between -50.0 and 50.0. Implementation is device dependent.

y Requirednumber

The y offset, as a value between -50.0 and 50.0. Implementation is device dependent.

Discussion

Use the Offset 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

{
  "componentTextStyles": {
    "exampleStyle": {

      "textShadow": {
        "radius": 5,
        "opacity": 0.7,
        "color": "#333",
        "offset": {
          "x": -2,
          "y": 2
        }
      },
      "fontSize": 30
    }
  }
}

See Also

Text Effects