三个点旋转loading加载动画效果

代码语言:html

所属分类:加载滚动

代码描述:三个点旋转loading加载动画效果

代码标签: loading 加载 动画 效果

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
html {
  height: 100%;
}

body {
  background-color: black;
  height: 100%;
  margin: 0;
}

.container {
  width: 30%;
  margin: 0 auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  height: 60px;
  width: 60px;
}
.container .ball {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 5px;
  z-index: 1;
}
.container .yellow {
  background-color: #f5e82f;
  animation: animateYellow 1.8s infinite;
}
.container .blue {
  background-color: #4cb8f5;
  transform: translate(40px, 0);
  animation: animateBlue 1.8s infinite;
}
.container .green {
  background-color: #a6e630;
  transform: translate(-40px, 0);
  animation: animateGreen 1.8s infinite;
}

@keyframes animateYellow {
  50% {
    transform: translate(0px, 0px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}
@key.........完整代码请登录后点击上方下载按钮下载查看

网友评论0