component-css

0.0.8 • Public • Published

css

jQuery's css() method.

Installation

Install with component(1):

$ component install component/css

API

css(el, prop)

Get the computed value of the prop on el.

css(p, 'color')

css(el, prop, value)

Set the CSS value on the prop on el

css(p, 'color', 'red')

css(el, styles)

Set a styles object to el

css(p, {
  color: 'red',
  background: 'blue'
})

TODO

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i component-css

Weekly Downloads

270

Version

0.0.8

License

MIT

Last publish

Collaborators

  • ockham
  • jongleberry
  • dominicbarnes
  • tootallnate
  • jonathanong
  • clintwood
  • thehydroimpulse
  • stephenmathieson
  • trevorgerhardt
  • timaschew
  • hughsk