I have a logo on my page which I want to be large in the center of the page for a few seconds before scaling down and moving to its place in the top left hand corner. I have managed to achieve the move i like but I have tried many different things to achieve the scale and not been able to. This is my code
.logo {
position: absolute;
top: 0px;
-webkit-animation: myMove 3s;
-moz-animation: myMove 3s;
-o-animation: myMove 3s;
animation: myMove 3s;
}
@-webkit-keyframes myMove {
0% {top:350px; left:450px;}
25% {top:350px; left:450px;}
50% {top:350px; left:450px;}
100% {top:0px; left:0px;}
}
@-moz-keyframes myMove {
0% {top:350px; left:450px;}
25% {top:350px; left:450px;}
50% {top:350px; left:450px;}
100% {top:0px; left:0px;}
}
@-o-keyframes myMove {
0% {top:350px; left:450px;}
25% {top:350px; left:450px;}
50% {top:350px; left:450px;}
100% {top:0px; left:0px;}
}
@keyframes myMove {
0% {top:350px; left:450px;}
25% {top:350px; left:450px;}
50% {top:350px; left:450px;}
100% {top:0px; left:0px;}
}
any help would be much appreciated!!