Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Library to manipulate CSS properties
JavaScript
branch: master

Merge pull request #7 from mattdesl/patch-1

removing show / hide
latest commit 1894c653ed
@azer azer authored
Failed to load latest commit information.
.gitignore initial commit
.npmignore initial commit
README.md rename & upgrade testing
index.js removing show / hide
package.json 0.0.3
test.js Account for 'float' camel-case exception

README.md

dom-style

Inline CSS manipulation library

var style = require('dom-style')

style(document.body, 'background-color', 'red')

style(document.body, {
  'font-color': 'yellow',
  'border': '5px solid black'
})

style.show(document.body.children[0])
style.hide(document.body.children[1])

Install

$ npm install dom-style
Something went wrong with that request. Please try again.