aboutsummaryrefslogtreecommitdiffstats
path: root/components/base/Pulser.vue
blob: 796b3cc6cf53eb762470ab1258fbf54dc554a36d (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
51
52
53
54
55
56
<template>
  <div class="circles">
    <div class="circle1"></div>
    <div class="circle2"></div>
    <div class="circle3"></div>
  </div>
</template>

<style scoped>
.circles {
  position: relative;
  height: 100px;
  width: 100px;

  >div {
    animation: growAndFade 3s infinite ease-out;
    background-color: var(--color-primary);
    border-radius: 50%;
    height: 100%;
    opacity: 0;
    position: absolute;
    width: 100%;
  }

  .circle1 {
    animation-delay: 1s;
  }

  .circle2 {
    animation-delay: 2s;
  }

  .circle3 {
    animation-delay: 3s;
  }
}

@keyframes growAndFade {
  0% {
    opacity: .25;
    transform: scale(0);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

body {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
}
</style>