Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

transformOrigin

Offset percentage along the x and y-axis for which contents are rotated and scaled.

transformOrigin

Source set: Common
@ExperimentalFoundationStyleApi
fun TransformOriginScope.transformOrigin(value: TransformOrigin)

Offset percentage along the x and y-axis for which contents are rotated and scaled. The default value of 0.5f, 0.5f indicates the pivot point will be at the midpoint of the left and right as well as the top and bottom bounds of the layer. Default value is TransformOrigin.Center.

Parameters

value The origin of the transform

Last updated: