Gets the vendor specific CSS style property name. ex) -webkit-transform, -moz-transform, -o-transform, -ms-transform
(static) getVendorStyle(property) → {string}
Parameters:
Name | Type | Description |
---|---|---|
property |
string | A CSS style property name. |
Returns:
The vendor specific CSS style property name.
- Type
- string
Example
var element = document.getElementById('id');
element.style[$.caph.ui.VendorUtil.getVendorProperty('transform')] = 'rotateX(90deg)';
element.style[$.caph.ui.VendorUtil.getVendorProperty('transition')] = $.caph.ui.VendorUtil.getVendorStyle('transform') + ' 0.5s';