我们需要Promise对象实现一个简单的效果:元素沿顺时针方向做圆周运动
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>使用promise做动画</title
<style>
.box {
width: 100px;
height: 100px;
background-color: lightgreen;
position: absolute;
}
</style>
</head>
<body>
<div class="box">