aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/sass/player/spinner.scss
blob: bd7efd3b87a9c0b322aa9bbf5e452b84b2903419 (plain) (tree)
1
2

                  


















































                                                                                                   
 
@use '_variables';
@use '_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;
    }
  }
}