jQuery.css
Parses/encodes CSS strings. For example, the following CSS string:
"background-color:red; width:25px; border-left: 1px black solid;
can be transformed into a JavaScript object:
or vice-versa.
Usage
Parse a CSS string to a JavaScript object:
Encode a JavaScript object as a CSS string:
Transform camel-cased CSS properties (for JavaScript) to dash case (for CSS):
Transform dash case (for CSS) to camel-cased CSS properties (for JavaScript):
Dependencies
This library uses jquery.delimitedString (part of skinny.js), which abstracts encoding/decoding of key-value pairs.