https://github.com/koala-framework/postcss-prefixer-keyframes
https://github.com/koala-framework/postcss-prefixer-keyframes
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/koala-framework/postcss-prefixer-keyframes
- Owner: koala-framework
- License: bsd-2-clause
- Created: 2015-11-20T07:42:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-07T15:16:50.000Z (over 9 years ago)
- Last Synced: 2025-01-20T05:40:19.019Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 2
- Watchers: 13
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# PostCSS Prefixer Keyframes
[PostCSS] plugin to prefix keyframes.
[PostCSS]: https://github.com/postcss/postcss
```css
/* Input example */
@keyframes mymove {
from {top: 0px;}
to {top: 200px;}
}
div {
width: 100px;
background: red;
position: relative;
animation: mymove 5s infinite;
}
a {
color: green;
position: relative;
animation: externalanimation 5s infinite;
}
```
```css
/* Output example */
@keyframes myWebsite-mymove {
from {top: 0px;}
to {top: 200px;}
}
div {
width: 100px;
background: red;
position: relative;
animation: myWebsite-mymove 5s infinite;
}
a {
color: green;
position: relative;
animation: externalanimation 5s infinite;
}
```
## Usage
```js
var prefix = require('postcss-prefixer-keyframes');
postcss([ prefix({prefix: 'myWebsite-'}) ])
```
See [PostCSS] docs for examples for your environment.