JSPM

component-css

0.0.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 260
  • Score
    100M100P100Q86149F
  • License MIT

DOM element css helper

Package Exports

  • component-css

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (component-css) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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