div+css实现点状loading加载动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:div+css实现点状loading加载动画效果代码

代码标签: div css 点状 loading 加载 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
<style>
.loading-dots {
  margin-bottom: 12px;
}
.loading-dots .dot {
  display: inline-block;
  height: 8px;
  width: 8px;
  border-radius: 50%;
  margin-right: 5px;
  background: white;
}

.loading-dots--1 .dot {
  animation: loadingDots1 1s ease infinite;
}
.loading-dots--1 .dot:nth-child(2) {
  animation-delay: 0.33s;
}
.loading-dots--1 .dot:nth-child(3) {
  animation-delay: 0.66s;
}

.loading-dots--2 .dot {
  animation: loadingDots2 1s ease infinite;
}
.loading-dots--2 .dot:nth-child(2) {
  animation-delay: 0.33s;
}
.loading-dots--2 .dot:nth-child(3) {
  animation-delay: 0.66s;
}

.loading-dots--3 .dot {
  animation: loadingDots3 1s ease infinite;
}
.loading-dots--3 .dot:nth-child(2) {
  animation-delay: 0.33s;
}
.loading-dots--3 .dot:nth-child(3) {
  animation-delay: 0.66s;
}

@keyframes loadingDots1 {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}
@keyframes loadingDots2 {
  0%, 100% {
    opacity: 1;
  }
  50% {
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0