css

January 3, 2014 ยท View on GitHub

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

  • Finish porting jQuery css unit tests over

License

MIT

Contents

  1. 1Installation
  2. 2API
  3. 2.1css(el, prop)
  4. 2.2css(el, prop, value)
  5. 2.3css(el, styles)
  6. 3TODO
  7. 4License