You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
807 B

4 years ago
  1. # [postcss][postcss]-reduce-transforms
  2. > Reduce transform functions with PostCSS.
  3. ## Install
  4. With [npm](https://npmjs.org/package/postcss-reduce-transforms) do:
  5. ```
  6. npm install postcss-reduce-transforms --save
  7. ```
  8. ## Example
  9. This module will reduce transform functions where possible. For more examples,
  10. see the [tests](src/__tests__/index.js).
  11. ### Input
  12. ```css
  13. h1 {
  14. transform: rotate3d(0, 0, 1, 20deg);
  15. }
  16. ```
  17. ### Output
  18. ```css
  19. h1 {
  20. transform: rotate(20deg);
  21. }
  22. ```
  23. ## Usage
  24. See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
  25. examples for your environment.
  26. ## Contributors
  27. See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
  28. ## License
  29. MIT © [Ben Briggs](http://beneb.info)
  30. [postcss]: https://github.com/postcss/postcss