loadingAnimation.module.scss 662 Bytes
Newer Older
dechen lin's avatar
dechen lin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.loader {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  /* stylelint-disable-next-line alpha-value-notation */
  background: linear-gradient(0deg, rgba(13,83,222,1) 0%,  rgba(43,105,226,1) 30%,  rgba(13, 20, 222, 0) 100%);
  box-sizing: border-box;
  animation: rotation 1.5s linear infinite;
}

.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

@keyframes rotation {
  0% { transform: rotate(0deg) }
  100% { transform: rotate(360deg)}
}