W3cubDocs

/Web APIs

CSSTransformComponent: toString() method

The toString() method of the CSSTransformComponent interface is a stringifier returning a CSS Transforms function.

Syntax

js

toString()

Parameters

None.

Return value

A string in the form of a CSS Transforms function.

This will use the value of is2D to return either a 2D or 3D transform. For example if the component represents CSSRotate and is2D is false then the string returned will be in the form of the CSS transformation rotate3D() function. If true the string returned will be in the form of the 2-dimensional rotate3D() function.

Examples

To Do

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
toString 66 79 No No 53 16.4 66 66 No 47 16.4 9.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CSSTransformComponent/toString