<!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>Document</title>
<style>
.box {
width: 1000px;
height: 250px;
border: 1px solid #000;
}
.circle {
margin-top: 25px;
margin-left: 10px;
width: 200px;
height: 200px;
border-radius: 40%;
background-color: greenyellow;
transition: all 2s;
}
.circle:hover {
transform: translateX(780px) rotate(720deg);
}
</style>
</head>
<body>
<div class="box">
<div class="circle"></div>
</div>
</body>
</html>
效果图: