dom-element-css

1.0.3 • Public • Published

dom-element-css

Build Status

DOM element style manipulation function.

API

css(element, name, value)

Gets/sets a style.

css(element, "color", "black"); // Setter
css(element, "color"); // Getter

css(element, object)

Sets a style using an object as value.

css(element, {
  color: "black",
  background: "white"
});

Acknowledgement

The component team which provides a lot of solid working bases to plagiarize :-p.

Readme

Keywords

none

Package Sidebar

Install

npm i dom-element-css

Weekly Downloads

11

Version

1.0.3

License

MIT

Last publish

Collaborators

  • jails