Gets the vendor specific CSS element style property name. ex) WebkitTransform, MozTransform, OTransform, msTransform
(static) getVendorProperty(property) → {string}
Parameters:
Name | Type | Description |
---|---|---|
property |
string | A CSS element style property name. |
Returns:
The vendor specific CSS style element property name.
- Type
- string
Example
angular.module('myApp', ['caph.ui']).controller('myController', ['$scope', 'VendorUtil', function($scope, VendorUtil) {
$scope.rotate = function(degree) {
document.getElementById('id').style[VendorUtil.getVendorProperty('transform')] = 'rotateX(' + degree + 'deg)';
}
}]);