css3之制作旋转小风车

下面教大家做一个旋转小风车,所用知识与我上一篇的爱心特效有相似之处,大家可以看看我前面发的文章,好了,下面就展示我的代码吧

<!DOCTYPE html>
<html>
<head>
	<title></title>
<style>
*{margin:0;padding:0;}
#box{width:400px;height:400px;position:relative;animation:rot 2s linear infinite;margin:0 auto;}
#box div{width:200px;height:50px;border-radius:50px 0 0 0;transform-origin:right bottom;position:absolute;left:0;top:150px;}
#box div:first-of-type{background:blue;transform:rotate(30deg);}
#box div:nth-of-type(2){background:green;transform:rotate(120deg);}
#box div:nth-of-type(3){background:red;transform:rotate(210deg);}
#box div:last-of-type{background:yellow;transform:rotate(300deg);}
#box p{width:50px;height:50px;background:silver;border-radius:25px;opacity:0.5;position:absolute;left:175px;top:175px;text-align:center;line-height:50px;color:purple;font-size:30px;}
@keyframes rot
{
	100%{transform:rotate(360deg);}
}
</style>
</head>
<body>
<div id="box">
	<div></div>
	<div></div>
	<div></div>
	<div></div>
	<p>转</p>
</div>
</body>
</html>

效果图
css3之制作旋转小风车
这是我的截图,动态图大家可以复制代码,打开浏览器即可查看效果。