css
Simple CSS manipulation.
Installation
$ component install ianstormtaylor/css
Example
var css = ;var div = document; // get; // "relative" // set one at a time; // set many at a time; // use dashes if you want; // you can omit "px" and it will be added automatically;
API
css(el, property)
Get the current value of a CSS property
of an el
.
css(el, property, value)
Set the value
of a CSS property
on an el
.
css(el, properties)
Set the value of a dictionary of properties
on an el
.
License
MIT