animate.css/source/flip.css

100 lines
2.9 KiB
CSS
Raw Normal View History

2011-11-01 13:39:27 +01:00
@-webkit-keyframes flip {
0% {
2013-08-15 23:29:40 +02:00
-webkit-transform: perspective(400px) translateZ(0) rotateY(0) scale(1);
2011-11-01 13:39:27 +01:00
-webkit-animation-timing-function: ease-out;
}
40% {
2013-08-15 23:29:40 +02:00
-webkit-transform: perspective(400px) translateZ(150px) rotateY(170deg) scale(1);
2011-11-01 13:39:27 +01:00
-webkit-animation-timing-function: ease-out;
}
50% {
-webkit-transform: perspective(400px) translateZ(150px) rotateY(190deg) scale(1);
-webkit-animation-timing-function: ease-in;
}
80% {
2013-08-15 23:29:40 +02:00
-webkit-transform: perspective(400px) translateZ(0) rotateY(360deg) scale(.95);
2011-11-01 13:39:27 +01:00
-webkit-animation-timing-function: ease-in;
}
100% {
2013-08-15 23:29:40 +02:00
-webkit-transform: perspective(400px) translateZ(0) rotateY(360deg) scale(1);
2011-11-01 13:39:27 +01:00
-webkit-animation-timing-function: ease-in;
}
}
@-moz-keyframes flip {
0% {
2013-08-15 23:29:40 +02:00
-moz-transform: perspective(400px) translateZ(0) rotateY(0) scale(1);
2011-11-01 13:39:27 +01:00
-moz-animation-timing-function: ease-out;
}
40% {
2013-08-15 23:29:40 +02:00
-moz-transform: perspective(400px) translateZ(150px) rotateY(170deg) scale(1);
2011-11-01 13:39:27 +01:00
-moz-animation-timing-function: ease-out;
}
50% {
-moz-transform: perspective(400px) translateZ(150px) rotateY(190deg) scale(1);
-moz-animation-timing-function: ease-in;
}
80% {
2013-08-15 23:29:40 +02:00
-moz-transform: perspective(400px) translateZ(0) rotateY(360deg) scale(.95);
2011-11-01 13:39:27 +01:00
-moz-animation-timing-function: ease-in;
}
100% {
2013-08-15 23:29:40 +02:00
-moz-transform: perspective(400px) translateZ(0) rotateY(360deg) scale(1);
2011-11-01 13:39:27 +01:00
-moz-animation-timing-function: ease-in;
}
}
@-o-keyframes flip {
0% {
2013-08-15 23:29:40 +02:00
-o-transform: perspective(400px) translateZ(0) rotateY(0) scale(1);
2011-11-01 13:39:27 +01:00
-o-animation-timing-function: ease-out;
}
40% {
2013-08-15 23:29:40 +02:00
-o-transform: perspective(400px) translateZ(150px) rotateY(170deg) scale(1);
2011-11-01 13:39:27 +01:00
-o-animation-timing-function: ease-out;
}
50% {
-o-transform: perspective(400px) translateZ(150px) rotateY(190deg) scale(1);
-o-animation-timing-function: ease-in;
}
80% {
2013-08-15 23:29:40 +02:00
-o-transform: perspective(400px) translateZ(0) rotateY(360deg) scale(.95);
2011-11-01 13:39:27 +01:00
-o-animation-timing-function: ease-in;
}
100% {
2013-08-15 23:29:40 +02:00
-o-transform: perspective(400px) translateZ(0) rotateY(360deg) scale(1);
2011-11-01 13:39:27 +01:00
-o-animation-timing-function: ease-in;
}
}
@keyframes flip {
0% {
2013-08-15 23:29:40 +02:00
transform: perspective(400px) translateZ(0) rotateY(0) scale(1);
2011-11-01 13:39:27 +01:00
animation-timing-function: ease-out;
}
40% {
2013-08-15 23:29:40 +02:00
transform: perspective(400px) translateZ(150px) rotateY(170deg) scale(1);
2011-11-01 13:39:27 +01:00
animation-timing-function: ease-out;
}
50% {
transform: perspective(400px) translateZ(150px) rotateY(190deg) scale(1);
animation-timing-function: ease-in;
}
80% {
2013-08-15 23:29:40 +02:00
transform: perspective(400px) translateZ(0) rotateY(360deg) scale(.95);
2011-11-01 13:39:27 +01:00
animation-timing-function: ease-in;
}
100% {
2013-08-15 23:29:40 +02:00
transform: perspective(400px) translateZ(0) rotateY(360deg) scale(1);
2011-11-01 13:39:27 +01:00
animation-timing-function: ease-in;
}
}
2013-08-15 23:29:40 +02:00
.animated.flip {
2011-11-01 13:39:27 +01:00
-webkit-backface-visibility: visible !important;
-webkit-animation-name: flip;
-moz-backface-visibility: visible !important;
-moz-animation-name: flip;
-o-backface-visibility: visible !important;
-o-animation-name: flip;
backface-visibility: visible !important;
animation-name: flip;
2013-08-15 23:29:40 +02:00
}