dry up code for CSS transforms
Merge pull request #2090 from mourner/transform

Dry up code for CSS transforms