1 | ## Vendor prefixer plugin for JSS
|
2 |
|
3 | This vendor prefixer knows which properties are supported in the current runtime and adds only whats required. The best thing is - you don't need to download all of them. Also it is very fast, all checks are cached. [See example.](http://jsstyles.github.io/jss-vendor-prefixer/examples/property/index.html)
|
4 |
|
5 | ```javascript
|
6 | {
|
7 | '.container': {
|
8 | transform: 'translateX(100px)'
|
9 | }
|
10 | }
|
11 | ```
|
12 | ```css
|
13 | .container {
|
14 | transform: -webkit-translateX(100px);
|
15 | }
|
16 | ```
|
17 |
|
18 | ## Register plugin
|
19 |
|
20 | ```javascript
|
21 | var jss = require('jss')
|
22 | var vendorPrefixer = require('jss-vendor-prefixer')
|
23 | jss.use(vendorPrefixer)
|
24 | ```
|
25 |
|
26 | ## Run tests
|
27 |
|
28 | ### Locally
|
29 | ```bash
|
30 | npm i
|
31 | open test/local.html
|
32 | ```
|
33 | ### From github
|
34 |
|
35 | [Tests](https://jsstyles.github.com/jss-vendor-prefixer/test)
|
36 |
|
37 | ## License
|
38 |
|
39 | MIT
|