@offset: 188.8;
@duration: 1.4s;

.preloading-layer{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #edf7fc;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  &.blackbg{
      background-color: #000;
      color: #fff;
      p{
          font-size: 14px;
          line-height: 2.5em;
      }
  }
  .preloading-container{
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100px;
      height: 75px;
      margin-left: -50px;
      margin-top: -40px;
  }
  .h5-layer-loading {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    .spinner {
      animation: rotator @duration linear infinite;
    }

    @keyframes rotator {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(270deg); }
    }

    @keyframes rotator2 {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(270deg); }
    }

    .path {
      stroke-dasharray: @offset;
      stroke-dashoffset: 0;
      transform-origin: center;
      animation:
        dash @duration ease-in-out infinite;
    }

    @keyframes dash {
     0% {
       stroke-dashoffset: @offset;
       opacity: 0;
     }
     50% {
       stroke-dashoffset: @offset/4;
       transform:rotate(135deg);
       opacity: 1;
     }
     100% {
       stroke-dashoffset: @offset;
       transform:rotate(450deg);
       opacity: 0;
     }
    }
  }
}
