element-style

Gets/sets an element style property

Usage no npm install needed!

<script type="module">
  import elementStyle from 'https://cdn.skypack.dev/element-style';
</script>

README

element-style Build Status

Gets/Sets an element style property

Installation

npm install element-style

Usage

var elementStyle = require('element-style')

// Set style
elementStyle(document.body, 'paddingLeft', '15px')

// Get style
elementStyle(document.body, 'paddingLeft')
// => '15px'

License

MIT