vue3 数据大屏蓝绿双底座效果

数据可视化大屏底座 yekong

vue3 数据大屏项目开发中,需要一些底座效果,今天整理的是数据大屏蓝绿双底座,加数字滚动效果。

底座由两个样式相同颜色不同的底座图片实现。

vue3 数据大屏蓝绿双底座

效果演示

组件代码

<template>
  <div class="dizuo">
    <div class="dizuoItem1 wow fadeInUp" data-wow-delay="1s">
      <div class="numBody">
        <numcard :number="39"></numcard>
        <span class="unit">个</span>
      </div>
      <div class="desc">
        <span>嘎查村</span>
      </div>
    </div>
    <div class="dizuoItem1 dizuoItem2 wow fadeInDown" data-wow-delay="1s">
      <div class="numBody">
        <numcard :number="3"></numcard>
        <span class="unit">个</span>
      </div>
      <div class="desc">
        <span>网格</span>
      </div>
    </div>
  </div>
</template>

<script>
import numcard from "@/components/numcard/numcard.vue";

export default {
  name: "title",
  data() {
    return {}
  },
  components: {numcard},
  mounted() {
  },
}
</script>

<style lang="scss" scoped>
.dizuo {
  width: 100%;
  position: relative;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: row;
  align-content: flex-start;

  .unit {
    font-size: 14px;
    font-family: MicrosoftYaHei;
    font-weight: 400;
    color: #FFFFFF;
  }

  .dizuoItem1 {
    background: url("./assets/dizuo1.png") center bottom no-repeat;
    background-size: 146px 88px;
    width: 50%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: column;
    align-content: flex-start;

    .numBody {
      font-size: 30px;
      font-family: DIN-Bold;
      font-weight: normal;
      color: #FFFFFF;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: nowrap;
      flex-direction: row;
      align-content: flex-start;
      text-shadow: 0 0 8px rgba(197, 167, 161, 1.00);
    }

    .desc {
      font-size: 14px;
      font-family: MicrosoftYaHei;
      font-weight: 400;
      color: #FFFFFF;
      position: relative;
    }
  }

  .dizuoItem2 {
    background: url("./assets/dizuo2.png") center bottom no-repeat;
    background-size: 146px 88px;
  }
}

:deep(.numBody) {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: row;
  height: 30px;
  line-height: 30px;
  align-content: flex-start;

  .real-time-num {
    width: auto;
    font-size: 26px;
    color: rgba(255, 255, 255, 1);
  }

  .real-time-num-item {
    font-size: 26px;
    color: rgba(255, 255, 255, 1);
  }
}
</style>

更多底座效果

vue3 数据可视化大屏底座效果实例集合

喜欢