1 | /**
|
2 | * Applies a CSS transform to an element, including browser-prefixed properties.
|
3 | * @param element
|
4 | * @param transformValue
|
5 | */
|
6 | export function applyCssTransform(element, transformValue) {
|
7 | // It's important to trim the result, because the browser will ignore the set operation
|
8 | // if the string contains only whitespace.
|
9 | var value = transformValue.trim();
|
10 | element.style.transform = value;
|
11 | element.style.webkitTransform = value;
|
12 | }
|
13 |
|
14 | //# sourceMappingURL=apply-transform.js.map
|