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

实例:

实例步骤:

  1.   创建一个外部盒子
  2. 在外部盒子内部创建四个小盒子
  3. 在矩形条中添加相应样式和过渡属性

实例代码:

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>progress</title>
	<style>
		body{
			background-color: #808080;
		}
		div{
			margin: 10px;
		}
		.two{
			background-color: #CB3F38;
			width: 200px;
			height: 200px;
			float: left;
			margin: 10px;
		}
		.two1{
			width: 16px;
			height: 16px;
			border-radius: 50%;
			background-color: #FF8079;
			margin: 30px 92px 0px 92px;
			animation: two1 1s infinite linear alternate;
		}
		@keyframes two1{
			to{
				transform: translate(0px,30px);
			}
		}
		.two2{
			color: #F97069;
			width: 94px;
			height: 26px;
			margin: 41px 53px 0px 53px;
			font-size:20px; 
			text-align: center;
		}
		.two3{
			width: 16px;
			height: 16px;
			border-radius: 50%;
			background-color: #FF8079;
			margin: 40px 142px 0px 42px;
			animation: two3 1s infinite linear alternate;
		}
		@keyframes two3{
			to{
				transform: translate( 30px,-30px);
			}
		}
		.two4{
			width: 16px;
			height: 16px;
			border-radius: 50%;
			background-color: #FF8079;
			margin: -16px 42px 0px 142px;
			animation: two4 1s infinite linear alternate;
		}
		@keyframes two4{
			to{
				transform: translate( -30px,-30px);
			}
		}
	</style>
</head>
<body>
	<div class="two">
		<div class="two1"> </div>
		<div class="two2">loading ...</div>
		<div class="two3"> </div>
		<div class="two4"> </div>
	</div>
</body>
</html>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值