.box {
    width: 100px;
    height: 100px;
    background-color: red;
    position: relative;
    animation-name: box;
    }

    
.box{
    animation: box 3s ease-in-out infinite;
}

@keyframes box{
    0% {background-color:red; left:0px; top:0px; width: 100px; height: 100px;}  
    25% {background-color:orange; left:200px; top:0px; width: 25px; height: 25px;}
    75% {background-color: green; left: 500px; top: 0px; width: 200px; height: 200px;}
    100% {background-color: blue; left: 300px; top: 0px; width: 150px; height: 150px;}
    }

.circle{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: greenyellow;
    position: relative;
    animation-name: circle;
}

.circle{
    animation: circle 5s ease-in infinite;
}

@keyframes circle {
    0% {background-color:red; left:0px; top:0px; width: 100px; height: 100px;}  
    25% {background-color:orange; left:200px; top:0px; width: 25px; height: 25px;}
    75% {background-color: darkgreen; right: 200px; top: 0px; width: 350px; height: 350px;}
    100% {background-color: lightpink; right: 50px; bottom: 100px; width: 150px; height: 150px;}
    
}


