postcss-rotate-unit
v0.0.1
Published
PostCSS plugin to add a default unit to your `rotate()` values
Downloads
7
Maintainers
Readme
postcss-rotate-unit
PostCSS plugin to add a default unit to your
rotate()
values.
Installation
$ npm i postcss-rotate-unit -D
Examples
Input
.foo{
transform: rotate(45);
}
Output
.foo{
transform: rotate(45deg);
}
Options
By default the unit which will be added is deg
.
You can also define a custom unit:
var postcssRotateUnit = require('postcss-random');
var postcssProcessors = [
postcssRotateUnit({
default: 'turn'
})
]