仪表盘式数据可视化
数据展示区域采用仪表盘式布局,利用CSS3的flex
与grid
,将支付统计、交易趋势等模块化显示。每个图表区域配合动画效果,动态展示数据变化,确保用户能够快速理解关键指标,体验直观的数据分析。
.dashboard {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.chart {
width: 45%;
background: rgba(0, 0, 0, 0.7);
border-radius: 8px;
padding: 20px;
margin: 10px;
transition: transform 0.3s ease;
}
.chart:hover {
transform: scale(1.05);
}
微动画与交互反馈
按钮悬停时触发微动画或颜色变化,加载过程中配合光环或数据流动动画,利用transition
与animation
属性,提升页面的互动性与用户体验。每一次点击与加载,都仿佛在未来的信息网络中穿梭,减少了用户的等待焦虑,增强了系统的可靠感。
@keyframes pulse {
0% {
box-shadow: 0 0 10px rgba(255, 110, 196, 0.5);
}
50% {
box-shadow: 0 0 20px rgba(255, 110, 196, 1);
}
100% {
box-shadow: 0 0 10px rgba(255, 110, 196, 0.5);
}
}
.loading {
width: 50px;
height: 50px;
border: 5px solid rgba(255, 255, 255, 0.2);
border-top: 5px solid #ff6ec4;
border-radius: 50%;
animation: spin 1s linear infinite, pulse 2s infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}