html页面加载蒙版_HTML5+CSS3从入门到精通 CSS3小圆点实现loading加载蒙版

本文介绍如何使用HTML5和CSS3创建一个简单的加载动画效果。通过设置关键帧动画和定位属性,实现了三个不同颜色的小圆点从左至右的平滑移动效果。此教程适合初学者学习CSS3动画的基础应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本篇教程探讨了HTML5+CSS3从入门到精通 CSS3小圆点实现loading加载蒙版,希望阅读本篇文章以后大家有所收获,帮助大家HTML5+CSS3从入门到精通 。

<

html>

body{

width: 100%;s

margin: 0 auto;

height: 3000px;

}

.div_load

{

width:15px;

height:15px;

float: ;

position:fixed;

bottom: 52%;

border-radius: 8px;

animation:loading 5s infinite;

-webkit-animation:loading 5s infinite;

}

#div1 {

animation-timing-function:ease;

animation-delay:0s;

-webkit-animation-timing-function:ease;

-webkit-animation-delay:0s;

background:#18bc9a;}

#div2 {

animation-delay:0.22s;

animation-timing-function:ease;

-webkit-animation-timing-function:ease;

-webkit-animation-delay:0.22s;

background:#58d68d}

#div3 {

animation-timing-function:ease;

animation-delay:0.44s;

-webkit-animation-timing-function:ease;

-webkit-animation-delay:0.44s;

background:#3398dc;}

#div4 {

animation-timing-function:ease;

animation-delay:0.66s;

-webkit-animation-timing-function:ease;

-webkit-animation-delay:0.66s;

background:#9b58b7;}

@keyframes loading

{

from {left:25%;}

to {left:75%;}

}

@-webkit-keyframes loading /* Safari and Chrome */

{

from {left:25%;}

to {left:75%;}

}

.ts_load{

display: block;

width: 100%;

height: 100%;

position: fixed;

z-index: 100;

background: rgba(0,0,0,0.3);

bottom: 0;top: 0;left: 0;right: 0;

}

.last_center{

position: absolute;

margin: auto;

}

.load_ts{

display: block;

position: fixed;

text-align: center;

bottom: 46%;

font-size: 16px;

font-family: 微软雅黑;

width: 100%;

color: #ffffff;}

请稍等...

本文由职坐标整理并发布,希望对同学们有所帮助。了解更多详情请关注职坐标WEB前端HTML5/CSS3频道!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值