Bakhtina Sofya b84cb877be 1st comm | vor 3 Wochen | |
---|---|---|
.. | ||
README.md | vor 3 Wochen | |
index-es5.js | vor 3 Wochen | |
index.js | vor 3 Wochen | |
license | vor 3 Wochen | |
package.json | vor 3 Wochen |
Convert a kebab-cased CSS property into a camelCased DOM property.
Node.js >= 6
is required. Type this at the command line:
npm install camelcase-css
const camelCaseCSS = require('camelcase-css');
camelCaseCSS('-webkit-border-radius'); //-> WebkitBorderRadius
camelCaseCSS('-moz-border-radius'); //-> MozBorderRadius
camelCaseCSS('-ms-border-radius'); //-> msBorderRadius
camelCaseCSS('border-radius'); //-> borderRadius