Skip to content

Commit 1cb5ee5

Browse files
committed
Add opera support, fix accidental -webkit- declaration in -ms-keyframes
1 parent a14ee16 commit 1cb5ee5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

source/swing.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,16 @@
2222
40% { -ms-transform: rotate(-10deg); }
2323
60% { -ms-transform: rotate(5deg); }
2424
80% { -ms-transform: rotate(-5deg); }
25-
100% { -webkit-transform: rotate(0deg); }
25+
100% { -ms-transform: rotate(0deg); }
26+
}
27+
28+
@-o-keyframes swing {
29+
20%, 40%, 60%, 80%, 100% { -o-transform-origin: top center; }
30+
20% { -o-transform: rotate(15deg); }
31+
40% { -o-transform: rotate(-10deg); }
32+
60% { -o-transform: rotate(5deg); }
33+
80% { -o-transform: rotate(-5deg); }
34+
100% { -o-transform: rotate(0deg); }
2635
}
2736

2837
@keyframes swing {
@@ -38,5 +47,6 @@
3847
-webkit-animation-name: swing;
3948
-moz-animation-name: swing;
4049
-ms-animation-name: swing;
50+
-o-animation-name: swing;
4151
animation-name: swing;
4252
}

0 commit comments

Comments
 (0)