0

Here is my keyframe code. I use for a infinite linear rotation.

@-o-keyframes rotating {
   from { -o-transform: rotate(0deg); }
     to { -o-transform: rotate(360deg); }
}

@keyframes rotating {
   from { transform: rotate(0deg); }
     to { transform: rotate(360deg); }
}

Can somehow simplify this code to something smaller?

@-o-keyframes rotating, @keyframes rotating {
   from { 
          -o-transform: rotate(0deg); 
          transform: rotate(0deg);}
     to { 
          -o-transform: rotate(360deg); 
          transform: rotate(360deg);
        }
}
hope
  • 107
  • 7
  • 1
    This is more a question for http://codereview.stackexchange.com/ – thomasb May 29 '15 at 08:27
  • The simple answer is...NO, you can't do that. Vendor prefixes cannot be combined into a single setting like that. If a browser encounters a property it doesn't understand it chucks out the whole statement, – Paulie_D May 29 '15 at 08:45

0 Answers0