css实现无限多米诺骨牌加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:css实现无限多米诺骨牌加载动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html>
<head>
<style>
[role=progressbar] {
position: relative;
padding: 0;
width: 100px;
height: 25px;
list-style: none;
}
[role=progressbar] li {
display: block;
position: absolute;
right: 0;
width: 3px;
height: 25px;
border-radius: 1px;
transform-origin: 50% 100%;
background-color: #fff;
-webkit-animation: bar linear 2.8s infinite;
animation: bar linear 2.8s infinite;
will-change: transform;
}
[role=progressbar] li:nth-child(1) {
transform: translateX(0) rotate(0deg);
opacity: 0.2;
}
[role=progressbar] li:nth-child(2) {
transform: translateX(-15px) rotate(0deg);
-webkit-animation-delay: -0.4s;
animation-delay: -0.4s;
}
[role=progressbar] li:nth-child(3) {
transform: translateX(-30px) rotate(0deg);
-webkit-animation-delay: -0.8s;
animation-delay: -0.8s;
}
[role=progressbar] li:nth-child(4) {
transform: translateX(-45px) rotate(10deg);
-webkit-animation-delay: -1.2s;
animation-delay: -1.2s;
}
[role=progressbar] li:nth-child(5) {
transform: translateX(-60px) rotate(40deg);
-webkit-animation-delay: -1.6s;
animation-delay: -1.6s;
}
[role=progressbar] li:nth-child(6) {
transform: translateX(-75px) rotate(62deg);
-webkit-animation-delay: -2s;
animation-delay: -2s;
}
[role=progressbar] li:nth-child(7) {
transform: translateX(-90px) rotate(72deg);
-webkit-animation-delay: -2.4s;
animation-delay: -2.4s;
}
@-webkit-keyframes bar {
0% {
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0