# Module: ol/transform

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/transform

    import * as olTransform from 'ol/transform';

### Functions

#### composeCssTransform(dx1, dy1, sx, sy, angle, dx2, dy2){string}

transform.js, line 217

      import {composeCssTransform} from 'ol/transform';

  Creates a composite transform given an initial translation, scale, rotation, and final translation (in that order only, not commutative). The resulting transform string can be applied as `transform` property of an HTMLElement's style.

  Name | Type | Description
  --- | --- | ---
  `dx1` | number | Initial translation x.
  `dy1` | number | Initial translation y.
  `sx` | number | Scale factor x.
  `sy` | number | Scale factor y.
  `angle` | number | Rotation (in counter-clockwise radians).
  `dx2` | number | Final translation x.
  `dy2` | number | Final translation y.

  ##### Returns:

  The composite css transform.

### Type Definitions

#### Transform{Array.<number>}

  An array representing an affine 2d transformation for use with `ol/transform` functions. The array has 6 elements.