7个简单进度条制作(三)

实例:

实例步骤:

  1. 创建一个外部盒子
  2. 在盒子左侧创建一个div盒子,用border-radius变成圆形

实例代码:

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>progress</title>
	<style>
		body{
			background-color: #808080;
		}
		div{
			margin: 10px;
		}
		.three{
			background-color: #FFA773;
			width: 200px;
			height: 200px;
			float: left;
		}
		.three1{
			color: #CE743B;
			width: 94px;
			height: 26px;
			margin-top: 67px;
			margin-left: 50px;
			font-size:20px; 
			text-align: center;
		}
		.three2{
			width: 16px;
			height: 16px;
			border-radius: 50%;
			margin-top: 15px;
			margin-left: 20px;
			animation: four2 1.5s infinite linear;
		}
        /* 关键帧设置 */
		@keyframes three2{
			0%{
				width: 16px;
				height: 16px;
				border-radius: 50%;
				background-color: #FFA773;
			}
			50%{
				width: 25px;
				height: 25px;
				border-radius: 50%;
				background-color: #CE743B;
				transform: translate(60px,0px);
			}
			100%{
				width: 16px;
				height: 16px;
				border-radius: 50%;
				background-color: #FFA773;
				transform: translate(130px,0px);
			}
		}
	</style>
</head>
<body>
	<div class="three">
		<div class="three1">loading ...</div>
		<div class="three2"> </div>
	</div>
</body>
</html>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值