Bakhtina Sofya b84cb877be 1st comm | il y a 3 semaines | |
---|---|---|
.. | ||
README.md | il y a 3 semaines | |
index-es5.js | il y a 3 semaines | |
index.js | il y a 3 semaines | |
license | il y a 3 semaines | |
package.json | il y a 3 semaines |
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