Optional
doIf true, don't animate while centering. Defaults to false.
Optional
horizontalTrue by default. Indicates the content should be centered in the X axis.
Optional
onOptional function to call on operation complete (centering may be animated).
Optional
verticalTrue by default. Indicates the content should be centered in the Y axis.
Options for the centerContent method