Reduced code by using compass mixins and two of my own - animation and animation fill mode. Those two just take one argument and creates a line for webkit, moz and regular.