_loader.scss 838 Bytes
Newer Older
1
.page-loader {
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
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: mc('blue-grey', '800');
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  color: mc('blue-grey', '100');
  font-weight: 300;
  font-size: 18px;
  flex-direction: column;

  > i {
		width: 48px;
		height: 48px;
		display: flex;
		justify-content: center;
		align-items: center;
    margin-bottom: 25px;

		&::before {
			content: " ";
			@include spinner(mc('blue-grey', '200'), 0.4s, 48px);
		}
	}

31 32 33 34
  &-leave-active {
    animation: pageLoaderExit 1s ease forwards;
  }

35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
  @include keyframes(pageLoaderExit) {
    0% {
      opacity: 1;
    }
    99% {
      display: flex;
      opacity: 0;
      transform: scale(1.1, 1.1);
    }
    100% {
      opacity: 0;
      display: none;
    }
  }

}