<template>
  <view>
    <view class="mine-dialog" :class="{'mine-dialog-black':isBlack}">
      <view class="loader-inner ball-spin-fade-loader">
        <view></view>
        <view></view>
        <view></view>
        <view></view>
        <view></view>
        <view></view>
        <view></view>
        <view></view>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  name: "en-loading",
  props: {
    'isBlack':{
      default:false
    }
  },
  components: {},
  data() {
    return {}
  },
  mounted() {

  },
  methods: {}

}
</script>

<style scoped lang="scss">
.mine-dialog{
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  .loader-inner{ position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 50px; height: 50px; margin: auto;}
}
.mine-dialog-black{
  background: #17191D;
}



@-webkit-keyframes ball-spin-fade-loader {
  50% {
    opacity: 0.3;
    -webkit-transform: scale(0.4);
    transform: scale(0.4); }

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

@keyframes ball-spin-fade-loader {
  50% {
    opacity: 0.3;
    -webkit-transform: scale(0.4);
    transform: scale(0.4); }

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

.ball-spin-fade-loader {
  position: relative;
}

.ball-spin-fade-loader > view:nth-child(1) {
  top: 32px;
  left: 17px;
  -webkit-animation: ball-spin-fade-loader 1s 0s infinite linear;
  animation: ball-spin-fade-loader 1s 0s infinite linear;
}

.ball-spin-fade-loader > view:nth-child(2) {
  top: 28.04545px;
  left: 28.04545px;
  -webkit-animation: ball-spin-fade-loader 1s 0.12s infinite linear;
  animation: ball-spin-fade-loader 1s 0.12s infinite linear;
}

.ball-spin-fade-loader > view:nth-child(3) {
  top: 17px;
  left: 32px;
  -webkit-animation: ball-spin-fade-loader 1s 0.24s infinite linear;
  animation: ball-spin-fade-loader 1s 0.24s infinite linear;
}

.ball-spin-fade-loader > view:nth-child(4) {
  top: 6.04545px;
  left: 28.04545px;
  -webkit-animation: ball-spin-fade-loader 1s 0.36s infinite linear;
  animation: ball-spin-fade-loader 1s 0.36s infinite linear;
}

.ball-spin-fade-loader > view:nth-child(5) {
  top: 2px;
  left: 17px;
  -webkit-animation: ball-spin-fade-loader 1s 0.48s infinite linear;
  animation: ball-spin-fade-loader 1s 0.48s infinite linear;
}

.ball-spin-fade-loader > view:nth-child(6) {
  top: 6.04545px;
  left: 6.04545px;
  -webkit-animation: ball-spin-fade-loader 1s 0.6s infinite linear;
  animation: ball-spin-fade-loader 1s 0.6s infinite linear;
}

.ball-spin-fade-loader > view:nth-child(7) {
  top: 17px;
  left: 2px;
  -webkit-animation: ball-spin-fade-loader 1s 0.72s infinite linear;
  animation: ball-spin-fade-loader 1s 0.72s infinite linear;
}

.ball-spin-fade-loader > view:nth-child(8) {
  top: 28.04545px;
  left: 6.04545px;
  -webkit-animation: ball-spin-fade-loader 1s 0.84s infinite linear;
  animation: ball-spin-fade-loader 1s 0.84s infinite linear;
}

.ball-spin-fade-loader > view {
  background-color: #AAAAAA;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  margin: 2px;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  position: absolute;
}

</style>