vue3 可视化数据大屏 项目开发中,会遇到各种各样的头部,今天整理的是 vue3 可视化数据大屏蓝色头部组件 - 数据可视化大标题。
如果您需要设计属于自己的数据可视化大屏或开发数据可视化大屏 请联系我们微信:17331886870
效果截图
帧动画效果
通过ae实现从两侧到中间的扫光动画,使用帧动画生成。帧动画虽然增加了效果同时也增加了文件大小。
帧动画文件大小
帧动画图片文件数量74
帧动画图片文件总大小4.2M
图片大小
1920 * 79
流光效果
图片大小
1920 * 300
增加高度以展示流光光晕,避免光晕被一刀切,
如果担心影响鼠标操作 就给组件增加一个穿透效果
pointer-events: none; 鼠标穿透
pointer-events: initial; 去除鼠标穿透
组件代码
<template>
<div class="pageTop wow fadeInDown">
<sequence IntervalTime="50"></sequence>
<div class="left"></div>
<div class="title">
<span>{{ name }}</span>
</div>
<div class="right">
</div>
</div>
</template>
<script>
import sequence from "./sequence/index.vue";
export default {
name: "pageTop",
components: {sequence},
data() {
return {
};
},
props: {
name: {
type: String,
default() {
return '';
}
}
}
}
</script>
<style lang="scss" scoped>
.pageTop {
width: 100%;
background: url("./assets/topbg.png") center top no-repeat;
background-size: 100% 100%;
height: 300px;
flex-shrink: 0;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
position: relative;
.left {
width: 30%;
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
}
.right {
width: 30%;
display: flex;
justify-content: flex-end;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
span{
margin-right: 30px;
font-size: 14px;
margin-bottom: 20px;
}
}
.title {
position: relative;
width: 40%;
height: 100%;
display: flex;
flex-shrink: 0;
justify-content: center;
align-items: flex-start;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
span {
font-size: 36px;
font-family: PangMenZhengDao;
font-weight: normal;
color: #FFFFFF;
margin-top: 20px;
letter-spacing: 2px;
background: linear-gradient(0deg, rgba(10, 177, 255, 1) 0%, rgba(255, 255, 255, 1) 50.2685546875%, rgba(255, 255, 255, 1) 83.7890625%, rgba(10, 177, 255, 1) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
}
</style>
更多数据可视化大屏顶部组件
源文件下载
文件包括头部效果代码 vue3 vite js nodejs 14
ae扫光动画源文件
ae流光动画源文件