getVendorStyle

caph.ui.VendorUtil. getVendorStyle

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.

See:
Returns:

The vendor specific CSS style property name.

Type
string
Example
angular.module('myApp', ['caph.ui']).controller('myController', ['$scope', 'VendorUtil', function($scope, VendorUtil) {
 	$scope.rotate = function(degree, duration) {
 		var element = document.getElementById('id');
 		element.style[VendorUtil.getVendorProperty('transform')] = 'rotateX(90deg)';
 		element.style[VendorUtil.getVendorProperty('transition')] = VendorUtil.getVendorStyle('transform') + ' ' + duration;
 	}
 }]);