<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Transform</title>
    <link href="style.css" rel="stylesheet">
</head>
<body>
    <div class="container">
        <div class="circle one"></div>
        <div class="circle two"></div>
        <div class="circle three"></div>
    </div>
</body>
</html>
*{
    margin: 0;
    padding: 0;
}

body{
    text-align: center;
    background-color: lightskyblue;
}

.container{
    margin: 5em auto;
    width: 1110px;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    max-width: 80%;
}

.circle{
    height: 120px;
    width: 120px;
    border-radius: 50%;
    animation-name: bounce;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}

.one{
    background-color: #3D087B;
}

.two{
    background-color: #F43B86;
    transform: translateY(200px);
    animation-name: bounce1;
}

.three{
    background-color: #FFE459;
}

@keyframes bounce{
    50%{
        transform: translateY(200px);
    }
}

@keyframes bounce1{
    50%{
        transform: translateY(0px);
    }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.