---
title: setMatrixValue
framework: webkitjs
role: symbol
role_heading: Instance Method
path: webkitjs/webkitcssmatrix/1629980-setmatrixvalue
---

# setMatrixValue

Sets the matrix values using a string representation.

## Declaration

```data
void setMatrixValue(
    optional DOMString string
);
```

## Parameters

- `string`: A string returned by the devLink-1694636 transform function—typically returned by window.getComputedStyle(element).webkitTransform().
