component / css

DOM element css helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

DOM element css helper


Languages

Language:JavaScript 99.0%Language:Makefile 1.0%