TextShadowOffset
The object for setting an offset value to use with a text shadow.
Declaration
object TextShadowOffsetProperties
| Name | Type | Description |
|---|---|---|
x Required | number | The |
y Required | number | The |
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
}
}
}