aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/player/spinner.scss
blob: 94f4d1008e610621f78a2b28a960bbe955a23875 (plain) (blame)
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
@import '_variables';
@import '_mixins';

// Thanks: https://projects.lukehaas.me/css-loaders/
.vjs-loading-spinner {
  left: 50%;
  font-size: 10px;
  text-indent: -9999em;
  border: 0.7em solid rgba(255, 255, 255, 0.2);
  border-left-color: #ffffff;
  transform: translateZ(0);
  animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
  overflow: hidden;
  visibility: hidden;

  &::before {
    animation: none !important;
  }

  &::after {
    border-radius: 50%;
    width: 6em;
    height: 6em;
    animation: none !important;
  }

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

  @keyframes vjs-spinner-show {
    0% {
      display: none;
      opacity: 0;
    }

    1% {
      display: block;
      visibility: visible;
      opacity: 0;
    }

    100% {
      display: block;
      visibility: visible;
      opacity: 1;
    }
  }
}