transform property
Gets or sets a list of one or more transform functions that specify how to translate, rotate, or scale an element in 2-D or 3-D space.
This property is read/write.
![]() ![]() |
Syntax
HRESULT put_transform( [in] BSTR v ); HRESULT get_transform( [out, retval] BSTR *sTransforms );
Property values
Type: BSTR
One or more transformation functions, separated by whitespace, applied in the order specified.
String format
none |
<transform-function>
[
<transform-function>
] *
CSS information
| Applies To | block-level and inline-level elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value | none |
Standards information
- CSS Transforms Module, Level 3, Section 6
Remarks
The version of this property using a vendor prefix, IHTMLCSSStyleDeclaration::transform, has been deprecated in Internet Explorer 10 and later. However, be aware that IHTMLCSSStyleDeclaration::transform is the only form of this property that is recognized by Windows Internet Explorer 9, which supports 2-D Cascading Style Sheets (CSS) transforms. To ensure maximum compatibility, specify a cascade such as the following, where the prefixed versions of the property come before the unprefixed version.
#mytransform {
...
-ms-transform: translate(200px, 100px) scale(.75, .75) rotate(40deg);
-webkit-transform: translate(200px, 100px) scale(.75, .75) rotate(40deg);
-moz-transform: translate(200px, 100px) scale(.75, .75) rotate(40deg);
transform: translate(200px, 100px) scale(.75, .75) rotate(40deg);
}
For information about the transformation functions that are supported for use with the IHTMLCSSStyleDeclaration::transform property, see Transform Functions.
To learn more about CSS transforms in Windows Internet Explorer, see How to bring your webpage to life with CSS transforms, transitions, and animations.
Requirements
|
Minimum supported client | Windows Vista with SP1, Windows 7 |
|---|---|
|
Minimum supported server | Windows Server 2008 R2 |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
- IHTMLCSSStyleDeclaration::transformOrigin
- How to bring your webpage to life with CSS transforms, transitions, and animations
Build date: 11/12/2012

