HTML写出永不停止的风车


1.使用HBuilder前端开发工具写代码,运行后如图:

在这里插入图片描述

2.具体代码如下:

直接粘贴复制

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>永不停止的风车</title>
<style type="text/css">
.box{
	width:160px;
	height:160px;
	
	animation:move 2s infinite linear;
}
span{
	display:block;
	width:100px;
	height:50px;
	border-radius:25px;
	opacity:0.6;
}
.one{
	background-color:red;
	transform:skew(30deg);
	position:relative;
	left:55px;
	top:60px;
}
.two{
	background-color:blue;
	transform:rotate(120deg)  skew(30deg) ;
	position:relative;
	left:5px;
	top:30px;
	
}
.three{
	background-color:#0F9;
	transform: rotate(240deg) skew(30deg) ;
	position:relative;
	left:15px;
	top:-70px;
	
}
.wheel{
	width:11px;
	height:220px;
	background:url(images/tree.PNG);
	position:relative;
	left:70px;
	top:-80px;
	z-index:-1;
	border-radius:10px 10px 0 0;
	
}
.wheel img{
	width:10px;
	height:10px;
	display:block;
}
@keyframes move{
	0%{
		transform:rotate(0deg);	
	}
	100%{
		transform:rotate(360deg);	
	}
}
</style>
</head>

<body>
<div class="box">
<span class="one"></span>
<span class="two"></span>

<span class="three"></span>


</div>
<div class="wheel">
<img src="file:///C|/Users/万卫/Desktop/images/point.png"/>
</div>
</body>
</html>

总结

本次的知识分享就到这了,谢谢你这么好看还关注我,下期再见!

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

川和流息

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值