Permalink
Browse files

Document the keyframe compression.

  • Loading branch information...
1 parent ca5fe1c commit 23640930039a6fedad7e477996ab52b0632c4d54 @rstacruz committed Nov 2, 2012
Showing with 28 additions and 0 deletions.
  1. +28 −0 README.md
View
@@ -88,6 +88,34 @@ a+.b{color:blue} /* Collapse + and > in selectors */
.color{background:#333} /* Converting rgb() values to hex */
```
+#### Keyframe compressions
+
+css-condense will trim out any unneeded vendor prefixes from keyframes.
+
+``` css
+@-moz-keyframes twist {
+ 0% {
+ -webkit-transform: rotate(30deg);
+ -moz-transform: rotate(30deg);
+ -o-transform: rotate(30deg);
+ }
+ 100% {
+ -webkit-transform: rotate(0);
+ -moz-transform: rotate(0);
+ -o-transform: rotate(0);
+ }
+}
+```
+
+Output:
+
+``` css
+@-moz-keyframes twist{
+0%{-moz-transform:rotate(30deg)}
+100%{-moz-transform:rotate(0)}
+}
+```
+
#### Selector/declaration sorting
Each rule has its selectors and declarations sorted. This may not seem like it

0 comments on commit 2364093

Please sign in to comment.