css 进度条缓慢上升或者增长的效果(柱状图上升效果)

暂时值写了横向进度条,纵向也是同理 

<template>
  <div class="bar" :style="aniShow ? ‘width:100%‘ : ‘width:0;‘"></div>
</template>
<script>
export default {
  data() {
    return {
      aniShow: false
    };
  },
  mounted() {
    setTimeout(() => {
      this.aniShow = true;
    }, 200);
  }
};
</script>
<style lang="less" scoped>
.bar {
  transition: width 0.4s ease-in-out;
  height: 0.88rem;
  width: 0;
  border-radius: 0.94rem;
  background-color: #f15887;
  background-image: linear-gradient(to right, #f15887, #fe9b86);
}
</style>

 css 进度条缓慢上升或者增长的效果(柱状图上升效果)

css 进度条缓慢上升或者增长的效果(柱状图上升效果)

上一篇:JQuery判断是否选中多选框


下一篇:前端之css