0.0.0 • Published 8 months ago
a-element-inline-style v0.0.0
a-element-inline-style
a simple function for set html element inline style or remove inline style
can use for custom style attribute
install
npm install --save a-element-inline-style
use
set html element inline style
import { setStyle } from 'a-element-inline-style';
setStyle(document.body, {
width: '100%',
'--custom-width': '80%',
});
remove html element inline style
import { removeStyle } from 'a-element-inline-style';
removeStyle(document.body, ['width', '--custom-width']);
Attribute names only support small humps
0.0.0
8 months ago