html如何css3加载中loading三点依次闪动加载效果,下面编程教程网小编给大家简单介绍一下实现代码!
html代码:
<div class="loading"></div>
css动态效果代码:
body{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: #69a7f7;
}
.loading:before,
.loading:after,
.loading {
border-radius: 50%;
width: 2.5em;
height: 2.5em;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation: load7 1.8s infinite ease-in-out;
animation: load7 1.8s infinite ease-in-out;
}
.loading {
margin: 8em auto;
font-size: 10px;
position: relative;
text-indent: -9999em;
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
}
.loading:before {
left: -3.5em;
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s;
}
.loading:after {
left: 3.5em;
}
.loading:before,
.loading:after {
content: '';
position: absolute;
top: 0;
}
@-webkit-keyframes load7 {
0%,
80%,
100% {
box-shadow: 0 2.5em 0 -1.3em #ffffff;
}
40% {
box-shadow: 0 2.5em 0 0 #FFF;
}
}
@keyframes load7 {
0%,
80%,
100% {
box-shadow: 0 2.5em 0 -1.3em #ffffff;
}
40% {
box-shadow: 0 2.5em 0 0 #FFF;
}
}
以上是编程学习网小编为您介绍的“css3加载中loading三点依次闪动效果代码”的全面内容,想了解更多关于 前端知识 内容,请继续关注编程基础学习网。
编程基础网
本文标题为:css3加载中loading三点依次闪动效果代码
基础教程推荐
猜你喜欢
- jQuery实现带动画效果的二级下拉导航方法 2024-01-08
- Vue前端路由hash与history差异深入了解 2024-01-12
- vscode如何设置自动格式化但不换行 2024-12-13
- 关于filter滤镜应用于图片的两种创意 2022-11-06
- node puppeteer(headless chrome)实现网站登录 2023-12-15
- 探讨.get .post .ajax ztree 还有后台servlet传递数据的相关知识 2022-10-18
- 使用CSS3来匹配横屏竖屏的简单方法 2023-12-09
- JS轮播图的实现方法 2024-02-07
- AngularJs Using $location详解及示例代码 2023-12-28
- ie6 z-index不起作用的完美解决方法 2023-12-09
