I have a swing animation that I would like to work on all (modern) browser. Do I have the correct css?
Also, what are the other browsers equivalent for: -webkit-transform-origin:top;
also, is there an easier way to write this out, seems like a lot of code? Im using less.
.bow{
-webkit-animation: swing 3s infinite ease-in-out;
-moz-animation: swing 3s infinite ease-in-out;
-o-animation: swing 3s infinite ease-in-out;
-ms-transition: swing 3s infinite ease-in-out;
animation: swing 3s infinite ease-in-out;
}
@-webkit-keyframes swing{
0%{-webkit-transform:rotate(-3deg)}
50%{-webkit-transform:rotate(3deg)}
100%{-webkit-transform:rotate(-3deg)}
}
@-moz-keyframes swing{
0%{-moz-transform:rotate(-3deg)}
50%{-moz-transform:rotate(3deg)}
100%{-moz-transform:rotate(-3deg)}
}
@-o-keyframes swing {
0%{-o-transform:rotate(-3deg)}
50%{-o-transform:rotate(3deg)}
100%{-o-transform:rotate(-3deg)}
}
@-ms-keyframes swing {
0%{-ms-transform:rotate(-3deg)}
50%{-ms-transform:rotate(3deg)}
100%{-ms-transform:rotate(-3deg)}
}
@keyframes swing {
0%{transform:rotate(-3deg)}
50%{transform:rotate(3deg)}
100%{transform:rotate(-3deg)}
}