md2
Version:
Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Chips(Tags), Collapse, Colorpicker, Data Table, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
17 lines • 628 B
JavaScript
/**
* Applies a CSS transform to an element, including browser-prefixed properties.
* @param element
* @param transformValue
*/
/**
* Applies a CSS transform to an element, including browser-prefixed properties.
* @param element
* @param transformValue
*/ export function applyCssTransform(element, transformValue) {
// It's important to trim the result, because the browser will ignore the set operation
// if the string contains only whitespace.
var value = transformValue.trim();
element.style.transform = value;
element.style.webkitTransform = value;
}
//# sourceMappingURL=apply-transform.js.map