node package manager

set-styles

Batch-set CSS properties on an element.

set-styles

Batch-set CSS properties on an element.

Install set-styles from npm or airportyh/set-styles from component.

var setStyles = require('set-styles')
 
setStyles(element, {
  position: 'absolute',
  top: 100 + 'px',
  left: 200 + 'px',
  width: 200 + 'px',
  height: 200 + 'px'
})