加载——水位上移效果

本文展示了一个加载进度的demo,利用水位上移效果来表示加载过程。通过HTML和JavaScript,逐步解释如何创建这个效果,包括页面布局、CSS样式设置和JavaScript的实现,最终达到在加载时,水位随着进度逐渐上涨的视觉体验。
摘要由CSDN通过智能技术生成

如下代码是一个加载过程的demo,通过水位上移表示进度情况的原理。也就是说,实现了加载过程中,水位上移表示加载的进度值增加的效果。

效果图

 

1、页面

 

<div class="circle">
	<img src="water.png">
	<span></span>
</div>

 

 

 

2、css

 

body{
	background-color: black;
}
.circle{
	left: 50%;
	margin-left: -100px;
	background-color: rgba(0%,80%,100%,0.5);
	width: 200px;
	height: 200px;
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	top: 100px;
}
.circle>img{
	position: relative;
	left: 0;
	top: 100px;
}
.circle>span{
	width: 80px;
	position: absolute;
	left: 50%;
	top: 120px;
	margin-left: -40px;
	color: rgba(255,255,255,0.5);
	font-size: 50px;
	font-family: Gotham, "Helv
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值