GoScrobble/web/node_modules/dom-helpers/esm/isTransform.js

4 lines
206 B
JavaScript

var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
export default function isTransform(value) {
return !!(value && supportedTransforms.test(value));
}