Вот HTML
<!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">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<container class="container">
<div class="control control1"></div>
<div class="control control2"></div>
<div class="control control3"></div>
<div class="control control4"></div>
<div class="control control5"></div>
</container>
<div class="ball">
</div>
</body>
</html>
Вот CSS
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body,html{
width: 100%;
height: 100%;
}
.ball{
position: absolute;
top: 200px;
left: 400px;
height: 100px;
width: 100px;
display: flex;
background: brown;
border-radius: 50px;
margin-left: 0;
padding-right: 100px;
}
.container{
position: relative;
top: 200px;
left: 400px;
display: flex;
}
.control{
width:100px;
height: 100px;
background: rgb(219, 76, 76);
border-radius: 50px;
}
.control2:hover .ball{
margin-left: 1000px;
}