vue3 数据可视化大屏 项目开发中,会遇到各种各样的头部,今天整理的是重要目标预警与智能分析系统头部组件。
如果您需要设计属于自己的数据可视化大屏或开发数据可视化大屏 请联系我们微信:17331886870
效果截图
帧动画效果
通过ae实现从两侧到中间的扫光动画,使用帧动画生成。帧动画虽然增加了效果同时也增加了文件大小。
帧动画文件大小
帧动画图片文件数量74
帧动画图片文件总大小1M
组件内容
背景加标题描述
加帧动画效果实例
图片大小
1920 * 65
组件代码
/**
* @Author: 858834013@qq.com
* @Name: pageTop
* @Date: 2023年06月23日18:51:57
* @Desc:
*/
<template>
<div class="pageTop wow fadeInDown">
<div class="title">
<span>{{ title }}</span>
</div>
<div class="subtitle">
<div class="icon1"></div>
<div class="subtitleInner">入侵检测</div>
<div class="icon2"></div>
</div>
<sequence fileName="topbg22/topbg_" fileLength="74" IntervalTime="50"></sequence>
</div>
</template>
<script>
import WOW from "wow.js";
import sequence from "@/components/sequence.vue";
export default {
name: "pageTop",
components: {sequence},
props: {
title: {
type: String,
default() {
return '重要目标预警与智能分析系统';
}
}
},
mounted() {
var wow = new WOW({
boxClass: "wow",
animateClass: "animated",
offset: 0,
mobile: true,
live: true,
callback: function (box) {
},
scrollContainer: null,
resetAnimation: true,
});
wow.init();
},
methods: {}
}
</script>
<style lang="scss" scoped>
.pageTop {
width: 100%;
//background: url("./assets/topbg.png") center top no-repeat;
//background-size: 916px 65px;
height: 90px;
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: nowrap;
flex-direction: column;
align-content: flex-start;
position: relative;
.title {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
height: 80px;
span {
font-size: 26px;
font-family: PingFang;
font-weight: bold;
color: #60E3D5;
text-shadow: 0 0 3px #60E3D5;
}
}
.subtitle {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
height: 30px;
position: absolute;
bottom: -15px;
z-index: 10;
.icon1 {
background: url("./assets/titlebg1.png") no-repeat;
width: 16px;
height: 30px;
background-size: 100% 100%;
margin: 0;
}
.subtitleInner {
background: url("./assets/titlebg2.png") no-repeat;
background-size: 100% 100%;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
padding: 0 20px;
min-width: 100px;
font-size: 16px;
font-family: PingFang;
font-weight: bold;
color: #1E3C3B;
margin: 0 -1px;
}
.icon2 {
background: url("./assets/titlebg3.png") no-repeat;
width: 16px;
height: 30px;
margin: 0;
background-size: 100% 100%;
}
}
}
</style>
更多数据可视化大屏顶部组件
项目应用
源文件下载
文件包括头部效果代码 vue3 vite js nodejs 14
ae扫光动画源文件