Stylecow plugin to generate the css fallback code with the old webkit syntax for css gradients
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

stylecow plugin webkit-gradient

Build Status

Stylecow plugin to generate the css fallback code with the old webkit syntax for css gradients.

Note: this plugin does not add vendor prefixes to the new syntax, use stylecow-plugin-prefixes to do that.

You write:

body {
    background-image: linear-gradient(to bottom, red, blue);
}

And stylecow converts to:

body {
    background-image: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
    background-image: linear-gradient(to bottom, red, blue);
}

More demos in the tests folder