animate.css/source/hinge.css

38 lines
2.4 KiB
CSS
Raw Normal View History

2011-10-19 11:58:30 +02:00
@-webkit-keyframes hinge {
2011-10-21 12:41:44 +02:00
0% { -webkit-transform: rotate(0); -webkit-transform-origin: top left; -webkit-animation-timing-function: ease-in-out; }
20%, 60% { -webkit-transform: rotate(80deg); -webkit-transform-origin: top left; -webkit-animation-timing-function: ease-in-out; }
40% { -webkit-transform: rotate(60deg); -webkit-transform-origin: top left; -webkit-animation-timing-function: ease-in-out; }
80% { -webkit-transform: rotate(60deg) translateY(0); opacity: 1; -webkit-transform-origin: top left; -webkit-animation-timing-function: ease-in-out; }
2011-10-19 11:58:30 +02:00
100% { -webkit-transform: translateY(700px); opacity: 0; }
}
@-moz-keyframes hinge {
2011-10-21 12:41:44 +02:00
0% { -moz-transform: rotate(0); -moz-transform-origin: top left; -moz-animation-timing-function: ease-in-out; }
20%, 60% { -moz-transform: rotate(80deg); -moz-transform-origin: top left; -moz-animation-timing-function: ease-in-out; }
40% { -moz-transform: rotate(60deg); -moz-transform-origin: top left; -moz-animation-timing-function: ease-in-out; }
80% { -moz-transform: rotate(60deg) translateY(0); opacity: 1; -moz-transform-origin: top left; -moz-animation-timing-function: ease-in-out; }
2011-10-19 11:58:30 +02:00
100% { -moz-transform: translateY(700px); opacity: 0; }
}
2011-10-21 09:34:54 +02:00
@-o-keyframes hinge {
2011-10-21 12:41:44 +02:00
0% { -o-transform: rotate(0); -o-transform-origin: top left; -o-animation-timing-function: ease-in-out; }
20%, 60% { -o-transform: rotate(80deg); -o-transform-origin: top left; -o-animation-timing-function: ease-in-out; }
40% { -o-transform: rotate(60deg); -o-transform-origin: top left; -o-animation-timing-function: ease-in-out; }
80% { -o-transform: rotate(60deg) translateY(0); opacity: 1; -o-transform-origin: top left; -o-animation-timing-function: ease-in-out; }
2011-10-21 09:34:54 +02:00
100% { -o-transform: translateY(700px); opacity: 0; }
}
2011-10-19 11:58:30 +02:00
@keyframes hinge {
2011-10-21 12:41:44 +02:00
0% { transform: rotate(0); transform-origin: top left; animation-timing-function: ease-in-out; }
20%, 60% { transform: rotate(80deg); transform-origin: top left; animation-timing-function: ease-in-out; }
40% { transform: rotate(60deg); transform-origin: top left; animation-timing-function: ease-in-out; }
80% { transform: rotate(60deg) translateY(0); opacity: 1; transform-origin: top left; animation-timing-function: ease-in-out; }
2011-10-19 11:58:30 +02:00
100% { transform: translateY(700px); opacity: 0; }
}
.hinge {
-webkit-animation-name: hinge;
-moz-animation-name: hinge;
2011-10-21 09:35:15 +02:00
-o-animation-name: hinge;
2011-10-19 11:58:30 +02:00
animation-name: hinge;
}