0.0.1 • Published 7 years ago

postcss-rotate-unit v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

postcss-rotate-unit Build Status

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'
   })
]

License

Changelog