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三点依次闪动效果代码
猜你喜欢
- Ajax商品分类三级联动的简单实现(案例) 2023-01-20
- Ajax+js实现异步交互 2022-12-15
- Bootstrap导航条可点击和鼠标悬停显示下拉菜单 2024-01-04
- html+css+javascript实现跟随鼠标移动显示选中效果 2024-01-05
- webpack-dev-server搭建本地服务器的实现 2024-03-09
- jquery实现可点击伸缩与展开的菜单效果代码 2024-01-02
- Ajax 上传图片并预览的简单实现 2023-01-21
- JS中Attr的用法详解 2023-12-01
- Vue基础面试题 2023-10-08
- JavaScript实现打开链接页面的方式汇总 2024-01-17