setMatrixValue method
Replaces an existing matrix with the computed matrix that corresponds to the input.
![]() ![]() |
Syntax
var retval = MSCSSMatrix.setMatrixValue(transformValue);Parameters
- transformValue [in]
-
Type: DOMString
A string in the form of an acceptable value for the transform property in CSS.
Return value
Type: HRESULT
This method can return one of these values.
| Return code/value | Description |
|---|---|
|
The operation completed successfully. |
|
The transformValue string cannot be parsed into an MSCSSMatrix. This occurs when the string is not a valid value for the transform property, or if the string contains relative units. |
Standards information
- CSS Transitions Module Level 3, Section 10.1
Remarks
Using the setMatrixValue method and setting the MSCSSMatrix attributes individually are the only ways to modify the current matrix. No other method will alter the current matrix.
See also
Show:

