UNPKG

478 BJavaScriptView Raw
1/**
2 @function prefix
3 @desc Returns the appropriate CSS vendor prefix, given the current browser.
4*/
5export default function() {
6 if ("-webkit-transform" in document.body.style) { return "-webkit-"; }
7 else if ("-moz-transform" in document.body.style) { return "-moz-"; }
8 else if ("-ms-transform" in document.body.style) { return "-ms-"; }
9 else if ("-o-transform" in document.body.style) { return "-o-"; }
10 else { return ""; }
11}
12
13//# sourceMappingURL=prefix.js.map
\No newline at end of file