首页 > 其他分享 >前端绘制一个好看炫酷的流程图

前端绘制一个好看炫酷的流程图

时间:2024-07-26 20:27:03浏览次数:18  
标签:0px 流程图 100% stroke 炫酷 font 绘制 top name

文章目录


一、效果图

在这里插入图片描述
因为是图片,所以不能展示动画效果,你们要看具体效果,就复制下面的代码到自己的项目里面去

二、直接上代码

<template>
  <div class="part">
    <div class="line_box">
      <svg height="505" width="450">
        <defs>
          <linearGradient id="lineGradient" x1="0" y1="0" x2="1" y2="1">
            <stop  offset="0%" stop-color="#70e9ff"></stop>
            <stop  offset="100%" stop-color="#07b6ff"></stop>
          </linearGradient>
        </defs>
        <image id="line_img" width="37" height="33" x="210" y="165" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAhCAYAAABeD2IVAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVBSURBVHgBpZhPixxFFMBf9fT823WibMCowYAfwJvgxcN6MqCIizmq4EWyK6gHwVNOi4IXwc3s6kFBEMRDQA/iOZ7EHP0EkU3UUXbdzZid2ZnpLt979V53dXdN74x5UFRNd/359atX770aAwuLNfDAYuxCvWA5AHP22OJEc9r+NLZukRCMKdTrXv/hAlA9D+Rm1i7XFTgzByiHURCCGEl7IvWsBiyWRVtSd7FWSAcYgHNgISgzF+YEogzmApZpDVQTFxtgUbgVSGvgbADqDCDSDIGcR6iptBMpJKkHF8kCDawbAkWAB9iL2qS5M8BimCcKRNohiDWsRwIyxTaB9DwwXwhmiCVioBTHWziH/Q6lDaK1Xtj4fU3lWvI1NMapCegUS8JainArHJQWngJrI4tEAkTlhDWUMmgb60PRGG2naqygrXma8rdMgVQ7K6w5AoxwUsN1VVMpzmG5XgGyRdKNA17Dcg9H6WEJaCsqnDrVEonakNoPAXVwmQmWlpQJfnPCwI2s0G96nvdp8LhU5vHnVTNZLx64uLqVkB/5qQe0wotFvNBUNNXiDTKdKB87NryRluegcS3WOp0+i6ZgxSZz19LNNGV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ger9j2RWCqz+XY9kifteDVQFDApwZcA66ZZCSPBmfOZ/CUEwqACSrC8AtcT/B6GFYAm4RcfXxDezSOz7v1IHvNh/USH5D8fM0/nzbT+DAAAAAElFTkSuQmCC"></image>
        <image id="line_img" width="37" height="33" x="210" y="295" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAhCAYAAABeD2IVAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVBSURBVHgBpZhPixxFFMBf9fT823WibMCowYAfwJvgxcN6MqCIizmq4EWyK6gHwVNOi4IXwc3s6kFBEMRDQA/iOZ7EHP0EkU3UUXbdzZid2ZnpLt979V53dXdN74x5UFRNd/359atX770aAwuLNfDAYuxCvWA5AHP22OJEc9r+NLZukRCMKdTrXv/hAlA9D+Rm1i7XFTgzByiHURCCGEl7IvWsBiyWRVtSd7FWSAcYgHNgISgzF+YEogzmApZpDVQTFxtgUbgVSGvgbADqDCDSDIGcR6iptBMpJKkHF8kCDawbAkWAB9iL2qS5M8BimCcKRNohiDWsRwIyxTaB9DwwXwhmiCVioBTHWziH/Q6lDaK1Xtj4fU3lWvI1NMapCegUS8JainArHJQWngJrI4tEAkTlhDWUMmgb60PRGG2naqygrXma8rdMgVQ7K6w5AoxwUsN1VVMpzmG5XgGyRdKNA17Dcg9H6WEJaCsqnDrVEonakNoPAXVwmQmWlpQJfnPCwI2s0G96nvdp8LhU5vHnVTNZLx64uLqVkB/5qQe0wotFvNBUNNXiDTKdKB87NryRluegcS3WOp0+i6ZgxSZz19LNNGVkCyEObp1+zUiMmr50xrXbxhlrIeogmMWFrc2h2ghkEHXcFBMg6TCkxRqpwR0Emv+At9mUtzCuaEnF11IqtpM4oE4TGhYh0SIbYt7G07dFg7DtGSQGwcZTcIafiOGn2QkO+TjWVq4ptSc1cJKkuG0fvw8XX7kMV45QW8dY9g9hsPka/FCG2vgQXopSdK9DSJP7kN7+FW7c+hnuIojlbZyIS5jJes6uslA030/NSscd2x98BIONF6Bz6SK8e5QArD4OsPsdPPX2FfhMh735OVxtPQRbkyP8Jpx9eAKf3voJfXvsaTT1PjwgUfDphZK37sqEbTBPPw87d+7Cde362JOwuf0NbKFtRVtfwuYjT8CWvvv3EPrf92GHxvH4rvehiYSqhaEGUJv3PHcZ+r/tw24Gdgmubv8IX5xHQH02PEAlfpLDLyMKZb3UwknD884jOean7mRR++UXob9/G/a0e2cVntH28QD2blyDPshJpHE8fiTGrvMPKqmN9aGc9CRgxlJ0AiNt9UFTSHGx9I0N6P/uaYzk6A/Y+/Y96NN76peN0fH6obpGywvOJU2FpSGxK+ITk5BfxiOeGPLjdOTRf7/zKlz/+44D++dP2P3qLdih5/we+1F/9ucTdihuvka9eRQD8joOo+N5jPXDOHSE9VjChIaXmQsl7KtomabTwevb8OzX1+CXTJPyAQwUc6xLcHyC8yU4X4JGn+I6CWvqUWzfZDfBATkMpSnLOZzylAOyA5sKmDhSAiMg6+VTanMZkGqpKUBtLikH5WKmkEEV/RQZ2zpAlmlScjbz8qJU4lhbFqZ34iqy1EWNOhagU6mbDOcSv6a3fb3qIfOhbLadXYlVFJsoOaMJ7+PzVQD2yi6O5WHDd4R6QAhkLDBuvKtjLwvtQvC2U/boDqwnx3cm2eKavFWwSMAS0EuBc4rqPkgIqiVGrUB5kgelU1fQVPniUM0+ybY0N9fskwBWvUy0LLEHE8mWtRnMaakm6wxBQQHsL1nQz9P9S4NmED3w74N5KuxfHvw0mMSduOBtxts+emBN3gEXooEuE005mt+TLdXrlQJOPC21AQq3GL1mdaB6kwkAlTRVozGnger9j2RWCqz+XY9kifteDVQFDApwZcA66ZZCSPBmfOZ/CUEwqACSrC8AtcT/B6GFYAm4RcfXxDezSOz7v1IHvNh/USH5D8fM0/nzbT+DAAAAAElFTkSuQmCC"></image>
        <polyline stroke="#07b6ff" points="110,110 110,140 229,140" class="edge"></polyline>
        <polyline stroke="#07b6ff" points="340,110 340,140 229,140" class="edge"></polyline>
        <polyline stroke="#07b6ff" points="229,140 229,172" class="edge"></polyline>
        <polyline stroke="#07b6ff" points="229,240 229,300" class="edge"></polyline>
      </svg>
    </div>
    <div class="step step1">{{ dataList[0].name }}</div>
    <div class="step step2">{{ dataList[1].name }}</div>
    <div class="step step3">{{ dataList[2].name }}</div>
    <div class="step step4">{{ dataList[3].name }}</div>
    <div @click="pgOpenWin" class="step5">开始评估</div>
  </div>
</template>

<script>
  export default {
    name: 'part1_2',
    components: {},
    data () {
      return {
        dataList: [
          {name: '设置资金'},
          {name: '资金分配'},
          {name: '模型分析'},
          {name: '预估结果'},
        ],
      }
    },
    watch: {},
    mounted () {
      this.init()
    },
    methods: {
      // 初始化加载
      async init () {
        this.$nextTick(() => {
        })
      },
      //开始评估按钮
      pgOpenWin(){
        // this.$emit('pgOpenWin')
      },
    },
  }
</script>

<style scoped lang="less" type="text/less">
  .part {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    .line_box{
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      svg{
        position: absolute;
        top: 0px;
        left: 0px;
        polyline {
          animation: dash 15000s linear infinite;
        }
        @keyframes dash {
          to {
            stroke-dashoffset: -600000;
          }
        }
      }
      .edge {
        stroke-width: 2.5px;
        stroke-linecap: round;
        stroke-dashoffset: 0;
        stroke-dasharray: 8;
        stroke-opacity: 1;
        fill: none;
      }
      .edge.gray {
        stroke: #b2cdeb;
      }
    }
    .step{
      width: 164px;
      height: 42px;
      line-height: 42px;
      text-align: center;
      font-family: SourceHanSansCN-Medium;
      font-size: 18px;
      font-weight: normal;
      font-stretch: normal;
      letter-spacing: 0px;
      color: #fefeff;
      position: absolute;
      text-shadow-shadow: 0px 1px 10px rgba(6, 48, 113, 1);
    }
    .step1,.step2,.step3,.step4,.step5,.step6,.step7,.step8,.step9,.step10,.step11{
      position: absolute;
      background: url("../img/22.png");
      //background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA0CAYAAAAE05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C9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4cmyICAAACZklEQVR42uzdQUvbYBjA8adNqggbzIOOfZzuNEdyHMObDD3K8Au4dew85obIPoGX3dIxdtGPM2wPilS3Vmv3PNpoUt9GahOr7P+DYEhrD+HP8/KiNKWtw544vNPjvQDFsb5qgxf9ITG+0mNejyb3DQWwtnb657WsIOMYq8SIAjX0eO6K0nfFuL5NjBjdh8Xxo/SJEROelLYa78ZR+jfF+G1FAv0Rcu+Qg2ivJfWBa81klH5/t3O+gSmX0u/cWpbg976En36ItP5yN3F7j2dE1l5K+GxWJCPKhp+4IOXy1Ts231zE+PmnyHEn/RowqqO2yIa29HYhM8r0LtvrR/dlSWM8kPDrL5E/navrwDhssFlTqy80yifOKNNBJpbscFN/8bidugaMH6U2ZW19fH2+L8kOMjkJmYwoirU1zNAgiRGTQJC4v0H6nvscYEKCIP2y+xxgyQZBEiRYsgEmJB5EkBXPfQ4wIUGQBAmWbIAJCSYkwIQEExIgSLBkA0xI/F8Tkn+uAEs2wJINJiRAkGBTAzAhwYQECg7S89znABMSBMlXqeDeBmmbml6PG4T8lUqjB1mfmZKgc6JRcv+QZ4x6TFUuGrsxyPiL7dunEk3rK9MVCU66RIn8YrQ/SeuErO+1JMoKck6PppcYpaddiWzZ1g8IumfcTIzPVuCMGOfiIO2RXvbQmqpOyNSDk856EtmX3muYAbcTOciK0RqsxQ9OMrvNI6k+fXTtaV5R/wAyaWy3Ecf43VqMl+zLKPVDeRIs7koqxsFNzWWUwuOJMYEYr+2yiRKTjNEVZDLKBvcNBaoNxmj+CTAATzSa/mRIA9oAAAAASUVORK5CYII=") no-repeat center center;
      background-size: 100% 100%;
    }
    .step1{
      top: 60px;
      left: 30px;
    }
    .step2{
      top: 60px;
      right: 30px;
    }
    .step3{
      top: 190px;
      left: calc((100% - 164px) / 2);
    }
    .step4{
      top: 320px;
      left: calc((100% - 164px) / 2);
    }
    .step5{
      width: 164px;
      height: 42px;
      line-height: 42px;
      text-align: center;
      font-size: 18px;
      font-family: SourceHanSansCN-Medium;
      font-weight: normal;
      font-stretch: normal;
      letter-spacing: 0px;
      color: #fff;
      background: url("../img/21.png");
      background-size: 100% 100%;
      position: absolute;
      left: calc((100% - 164px) / 2);
      bottom: 50px;
      cursor: pointer;
    }
  }
</style>

代码里面的图片我放在下面,你们也可以用其他好看的图片:
在这里插入图片描述
在这里插入图片描述

标签:0px,流程图,100%,stroke,炫酷,font,绘制,top,name
From: https://blog.csdn.net/admire_fish/article/details/140711823

相关文章

  • 【参数化建模】利用Python在Abaqus里面绘制复杂曲线——以“爱心曲线”为例
    【参数化建模】利用Python在Abaqus里面绘制复杂曲线——以“爱心曲线”为例说在前面Python在Abaqus里面可以批量处理很多事情,包括复杂曲线的绘制,这里以心形线为例。心形线函数这里我们选取一款比较经典的心形线:Abaqus代码#--coding:utf-8--importnumpyasnpfr......
  • 微信小程序地图Map结合canvas实现手动绘制地图区域
    1.功能概述在微信小程序中,用户手动在地图上绘制区域,将绘制的区域边界点转换为经纬度在地图上显示绘制的区域。此功能实现了用户与地图的交互,可以应用于地理围栏、区域标记等场景。2.实现步骤2.1获取用户位置在小程序加载时,使用wx.getLocation获取用户的当前位置,并......
  • C#:winform使用chart控件绘制折线图,时间轴可缩放
    Chart坐标轴横轴为时间,纵轴是数值如果只是一次性绘图,那么遍历一遍数据即可如果想连续绘制(比如按照时间更新绘制),就需要一个Timer控件来更新绘图的数据。以下为项目代码:GUI界面添加一个Chart和一个timer即可 usingSystem;usingSystem.Collections.Generic;usingSystem.Comp......
  • 为什么 SpaceView3D 绘制处理程序不显示我的材质和光线?
    defdraw_callback_px(self,context):font_id=0#A4dimensionsat300DPIa4_width=707a4_height=1000region_width=context.region.widthregion_height=context.region.heightx_offset=(region_width-a4_width)/2......
  • 在 matplotlib 中绘制一个字符串函数 // 将 str 解释为 python 代码?
    我正在创建一个RPN计算器,尝试绘制用户给出的函数。例如,如果用户输入"xsin3*plot"我希望它绘制sin(x)*3其代码如下。注意:问题在ifprompt=="plot"userInputX=""#userInputXisalwaysreplacedbefore......
  • 绘制控制流图的方法步骤
    程序流图(Flowchart)是一种图形化表示程序逻辑和流程的工具。绘制程序流图可以帮助开发者理解程序的结构和执行路径。以下是绘制程序流图的基本步骤和一些关键元素:确定开始和结束:程序总是从一个明确的开始点开始,并在某个点结束。使用流程图符号:流程图使用一系列标准化的图形......
  • Android开发 - Canvas类与Paint画笔的绘制详解与使用
    Canvas类是什么Android中Canvas类常用于自定义View等操作中,Canvas则如同一张画布可以在上面绘制内容,然后这张画布也可以叠加其他的图层或者平移旋转等操作。Canvas对象的获取方式有两种:一种我们通过重写onDraw方法,View中重写onDraw(Canvascanvas)Canvas对象会被当做参数传递过......
  • 绘制伊朗温度与野火之间的相关性
    这个想法是为了找到伊朗野火与气温之间的相关性。我使用了每场野火的坐标来对抗伊朗的温度,我的意思是几何形状,但p值非常低,几乎所有值都为零。我尝试了Geometry.bound函数,仅获取野火,但数据为零且p值非常小很高兴帮助确定伊朗野火与温度之间的相关性。根据的描述,似......
  • 使用seaborn和hue绘制条形图,如何获取百分比值形式的条形标签?
    我有以下数据集(df):``source_cityclassprice0BangaloreBusiness53671.8568981班加罗尔经济6526.2944102钦奈商务54036.7498193钦奈经济6497.5686224德里商业48614.1728935德里经济6275.0931366海得拉巴业务50357.5905317海得拉巴经济6......
  • 1325、基于51单片机电能表电压电流功率因数等多参数OLED显示设计(程序+原理图+参考论
    毕设帮助、开题指导、技术解答(有偿)见文未  目录方案选择单片机的选择一、设计功能二、实物图单片机模块设计三、原理图四、程序源码资料包括:需要完整的资料可以点击下面的名片加下我,找我要资源压缩包的百度网盘下载地址及提取码。方案选择单片机的选择方案一......