Bakhtina Sofya b84cb877be 1st comm | hai 2 semanas | |
---|---|---|
.. | ||
README.md | hai 2 semanas | |
index-es5.js | hai 2 semanas | |
index.js | hai 2 semanas | |
license | hai 2 semanas | |
package.json | hai 2 semanas |
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