纯css实现三个点旋转loading加载动画效果

代码语言:html

所属分类:加载滚动

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

代码标签: 三个 旋转 loading 加载 动画 效果

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

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

<style>
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background: #c5cae9;
}

.box {
  width: 300px;
  height: 300px;
  background: #1a237e;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3);
}

.container {
  height: 15px;
  width: 105px;
  display: flex;
  position: relative;
}
.container .circle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #fff;
  animation: move 500ms linear 20ms infinite;
}
.container .circle:first-child {
  position: absolute;
  top: 0;
  left: 0;
  transfor: scale(0, 0);
  animation: circle-shrink 500m.........完整代码请登录后点击上方下载按钮下载查看

网友评论0