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