源码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>纯CSS实现风车转动</title>
<style>
body{
margin: 0;
background: #a5cad6;
position: relative;
}
.windmill{
margin: 500px auto;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
height: 120px;
width: 100px;
}
.pillar{
width: 4px;
height: 0;
border-color:transparent transparent #fff;
border-style: solid;
border-width: 20px 6px 100px;
position: relative;
left: 50%;
margin:0 -53%;
}
.leaves{
width: