Check out example codes for "offsetx and offsety in css". It will help you in understanding the concepts better.

Code Example 1

offset-x : how far to push the shadow horizontally from the element.
offset-y : how far to push the shadow vertically from the element.

Learn ReactJs, React Native from akashmittal.com