lopta
by lovromar
HTML
<div class="element-animation">lala</div>
CSS
.element-animation{
width:100px;
height:100px;
background-color:red;
position:relative;
animation: animationFrames ease 0.6s;
animation-iteration-count: 100;
transform-origin: ;
-webkit-animation: animationFrames ease 0.6s;
-webkit-animation-iteration-count: 100;
-webkit-transform-origin: ;
-moz-animation: animationFrames ease 0.6s;
-moz-animation-iteration-count: 100;
-moz-transform-origin: ;
-o-animation: animationFrames ease 0.6s;
-o-animation-iteration-count: 100;
-o-transform-origin: ;
-ms-animation: animationFrames ease 0.6s;
-ms-animation-iteration-count: 100;
-ms-transform-origin: ;
}
@keyframes animationFrames{
0% {
left:0px;
top:0px;
opacity:1;
transform: rotate(0deg) scaleX(1) scaleY(1) skewX(0deg) skewY(0deg) ;
}
50% {
left:0px;
top:-21px;
}
100% {
left:0px;
top:0px;
opacity:1;
transform: rotate(0deg) scaleX(1) scaleY(1) skewX(0deg) skewY(0deg) ;
}
}
@-moz-keyframes animationFrames{
0% {
left:0px;
top:0px;
opacity:1;
-moz-transform: rotate(0deg) scaleX(1) scaleY(1) skewX(0deg) skewY(0deg) ;
}
50% {
left:0px;
top:-21px;
}
100% {
left:0px;
top:0px;
opacity:1;
-moz-transform: rotate(0deg) scaleX(1) scaleY(1) skewX(0deg) skewY(0deg) ;
}
}
@-webkit-keyframes animationFrames {
0% {
left:0px;
top:0px;
opacity:1;
-webkit-transform: rotate(0deg) scaleX(1) scaleY(1) skewX(0deg) skewY(0deg) ;
}
50% {
left:0px;
top:-21px;
}
100% {
left:0px;
top:0px;
opacity:1;
-webkit-transform: rotate(0deg) scaleX(1) scaleY(1) skewX(0deg) skewY(0deg) ;
}
}
@-o-keyframes animationFrames {
0% {
left:0px;
top:0px;
opacity:1;
-o-transform: rotate(0deg) scaleX(1) scaleY(1) skewX(0deg) skewY(0deg) ;
}
50% {
left:0px;
top:-21px;
}
100% {
left:0px;
top:0px;
opacity:1;
-o-transform: rotate(0deg) scaleX(1) scaleY(1) skewX(0deg)...