RightModel.vue 8.28 KB
<template>
  <div class="model">
    <div class="model-title x-center">
      <div class="text">数据产品</div>
    </div>
    <div class="gif">
      <div class="gif-text">
        数据脱敏
        <br />
        数据鉴权
        <br />
        数据分发
      </div>
      <img src="@/assets/images/factor/factor-right.gif" />
    </div>
    <div class="num-box flex">
      <template v-for="(i, index) in numList">
        <div class="num-item floating-element" :key="index">
          <img :src="i" />
          <img :src="numMask[index]" class="light x-center" />
        </div>
      </template>
    </div>
    <div class="chain-box">
      <template v-for="(i, index) in chainList">
        <div class="chain-item" :key="index">
          <div class="border box-center"></div>
          <img :src="i" class="img" />
        </div>
      </template>
      <div class="chain-line-box flex y-center">
        <div class="column-line">
          <div class="arrow"></div>
          <div class="arrow"></div>
        </div>
        <div class="column-line">
          <div class="arrow"></div>
          <div class="arrow"></div>
        </div>
        <div class="column-line">
          <div class="arrow"></div>
          <div class="arrow"></div>
        </div>
        <div class="row-line y-center">
          <div class="icon flex">
            <div class="text">数据应用</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  name: '',
  data () {
    return {
      numList: [
        require('@/assets/images/factor/right-1.png'),
        require('@/assets/images/factor/right-2.png'),
        require('@/assets/images/factor/right-3.png'),
      ],
      numMask: [
        require('@/assets/images/factor/right-1-1.png'),
        require('@/assets/images/factor/right-2-2.png'),
        require('@/assets/images/factor/right-3-3.png'),
      ],
      chainList: [
        require('@/assets/images/factor/right-icon-1.png'),
        require('@/assets/images/factor/right-icon-2.png'),
        require('@/assets/images/factor/right-icon-3.png'),
        require('@/assets/images/factor/right-icon-4.png'),
        require('@/assets/images/factor/right-icon-5.png'),
        require('@/assets/images/factor/right-icon-6.png'),
        require('@/assets/images/factor/right-icon-7.png'),
        require('@/assets/images/factor/right-icon-8.png')
      ]
    }
  },
  mounted () {
  },
  methods: {
  }
}
</script>

<style scoped lang="scss">
@import url('./model.scss');
.model {
  background-image: url('../../../assets/images/factor/factor-right.png');
  padding-top: 7.48vh;
  right: 80px;
  .gif {
    position: absolute;
    width: 195px;
    height: 37.6vh;
    top: 17.31vh;
    left: -189px;
    &-text {
      color: #fff;
      position: absolute;
      text-align: center;
      top: 15.29vh;
      left: 49px;
      font-size: 18px;
      color: #ffffff;
      line-height: 2.3vh;
      text-shadow: 0 2px 4px #00000080;
    }
  }
  .num-box {
    padding: 0 22px;
    justify-content: center;
    gap: 0 10px;
    margin-bottom: 4.52vh;
    .num-item {
      width: 200px;
      height: 15.38vh;
      position: relative;
      .light {
        width: 192px;
        height: 5.72vh;
        top: 0;
        animation: light-move 2s linear infinite;
      }
      @keyframes light-move {
        0% {
          opacity: 0;
        }
        50% {
          opacity: 1;
        }
        100% {
          opacity: 0;
        }
      }
    }
  }
  .chain-box {
    display: flex;
    padding: 0 46px 0 85px;
    flex-wrap: wrap;
    gap: 5.38vh 60px;
    position: relative;
    .chain-line-box {
      width: 100%;
      left: 0;
      height: 22.88vh;
      padding-left: 85px;
      box-sizing: border-box;
      gap: 0 60px;
      .column-line {
        width: 138px;
        height: calc(100% - 2vh);
        position: relative;
        box-sizing: border-box;

        &::before,
        &::after {
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          content: '';
          height: 50%;
          width: 4px;
          background: linear-gradient(to bottom, transparent 20%, #56fefe 40%, transparent 60%);
          background-size: 1px 10px;
        }
        &::before {
          top: 0;
          animation: move-dots-y 4s linear infinite;
        }
        &::after {
          bottom: 0;
          animation: move-dots-y 4s linear infinite;
          animation-direction: reverse;
        }
        .arrow {
          position: absolute;
          width: 40px;
          height: 3.85vh;
          background-image: url('../../../assets/images/factor/right-arrow.png');
          background-size: cover;
          background-repeat: no-repeat;
          left: 50%;
          transform: translateX(-50%);
          &:first-child {
            top: -1vh;
            transform: rotate(180deg) translateX(50%);
          }
          &:last-child {
            bottom: -1vh;
          }
        }
      }
      .row-line {
        left: 105px;
        width: 79px;
        height: 4px;
        box-sizing: border-box;
        background: linear-gradient(to right, transparent 20%, #56fefe 40%, transparent 60%);
        background-size: 10px 1px;
        animation: move-dots-right 4s linear infinite;
        .icon {
          position: absolute;
          left: -80px;
          top: 50%;
          transform: translateY(-50%);
          flex-direction: column;
          &::before {
            content: '';
            display: block;
            width: 67px;
            height: 10.78vh;
            background-image: url('../../../assets/images/factor/right-icon.png');
            background-size: cover;
            background-repeat: no-repeat;
          }
          .text {
            font-family: SourceHanSansCN-Bold;
            font-weight: 700;
            font-size: 22px;
            letter-spacing: 0.79px;
            background: linear-gradient(to right, #01a4f9, #6df5f9);
            -webkit-background-clip: text;
            color: transparent;
          }
        }
      }
    }
    .chain-item {
      position: relative;
      z-index: 2;
      width: 138px;
      height: 12.02vh;
      &:nth-child(4),
      &:nth-child(5) {
        &::after {
          position: absolute;
          content: '';
          top: 50%;
          transform: translateY(-50%);
          height: 4px;
          background: linear-gradient(to right, transparent 20%, #56fefe 40%, transparent 60%);
          background-size: 10px 1px;
          animation: move-dots-right 4s linear infinite;
        }
      }
      &:nth-child(4) {
        margin-left: 99px;
        &::after {
          width: 60px;
          right: -60px;
        }
      }
      &:nth-child(5) {
        &::after {
          width: 31px;
          right: -31px;
        }
      }
      @keyframes rotate {
        100% {
          transform: translate(-50%, -50%) rotate(1turn);
        }
      }
      .border {
        width: calc(100% + 2px);
        height: calc(100% + 2px);
        overflow: hidden;
        border-radius: 12px;

        &::before {
          content: '';
          position: absolute;
          z-index: -2;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          width: 300%;
          height: 50%;
          background-color: transparent;
          background-repeat: no-repeat;
          background-size: 50% 50%;
          background-position: 0 0;
          background-image: conic-gradient(#56fefe, #56fefe);
          animation: rotate 8s linear infinite;
        }
        &::after {
          content: '';
          position: absolute;
          z-index: -1;
          left: 2px;
          top: 2px;
          width: calc(100% - 4px);
          height: calc(100% - 4px);
          background: rgb(6, 33, 69);
          border-radius: 12px;
        }
      }
      &:nth-child(4),
      &:nth-child(5) {
        .border {
          &::before {
            animation: rotate 8s 0.5s linear infinite;
          }
        }
      }
      .img {
        position: relative;
        z-index: 2;
      }
    }
  }
}
@keyframes move-dots-right {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 100px;
  }
}
@keyframes move-dots-y {
  0% {
    background-position-y: 100px;
  }
  100% {
    background-position-x: 0;
  }
}
</style>