summaryrefslogtreecommitdiff
path: root/src/components/Loading.module.scss
blob: 7166140ef48719e2fa841fafd4fd05925c248cac (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
$color1: #2a477a;
$color2: #dddddd;

@keyframes moveRight {
  0% {
    transform: translate(-50px);
  }

  100% {
    transform: translate(10px);
  }
}

@keyframes moveLeft {
  0% {
    transform: translate(50px);
  }

  100% {
    transform: translate(-10px);
  }
}

.loading {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 0 auto;
  height: 30vh;
}

.circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
}

.left {
  background-color: $color1;
  left: 50%;
  animation: moveRight 1s ease-in-out 0s infinite alternate;
}

.right {
  background-color: $color2;
  right: 50%;
  animation: moveLeft 1s ease-in-out 0s infinite alternate;
}