Skip to content

airportyh/set-styles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

set-styles

Batch-set CSS properties on an element.

Install

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

Usage

var setStyles = require('set-styles')

setStyles(element, {
  position: 'absolute',
  top: 100 + 'px',
  left: 200 + 'px',
  width: 200 + 'px',
  height: 200 + 'px'
})

About

Batch-set CSS properties on an element.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published