---
title: "transformOrigin"
description: "Offset percentage along the x and y-axis for which contents are rotated and scaled."
type: "function"
lastmod: "2026-05-20T01:13:53.261359Z"
---
## API Reference

### transformOrigin

> Source set: Common

```kotlin
@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](/jetpack-compose/androidx.compose.ui/ui-geometry/properties/center).

#### Parameters

| | |
| --- | --- |
| value | The origin of the transform |
