three实现新能源电车汽车车载大屏导航显示车辆行驶动画仪表盘代码

代码语言:html

所属分类:动画

代码描述:three实现新能源电车汽车车载大屏导航显示车辆行驶动画仪表盘代码

代码标签: three 新能源 电车 汽车 车载 大屏 导航 显示 车辆 行驶 动画 仪表盘 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
    <title>特斯拉风格导航 UI (高级版)</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');

        body {
            margin: 0;
            padding: 0;
            background-color: #1a1a1a;
            color: #ffffff;
            font-family: 'Roboto', sans-serif;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .tesla-ui {
            width: 100%;
            height: 100%;
            background-color: #18191A;
            display: grid;
            grid-template-columns: 320px 1fr; /* Widened left panel */
            grid-template-rows: 50px 1fr 70px;
            grid-template-areas:
                "top top"
                "left main"
                "bottom bottom";
            position: relative;
        }

        /* --- Top Bar --- */
        .top-bar {
            grid-area: top;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            background-color: rgba(0, 0, 0, 0.2);
            border-bottom: 1px solid #2c2c2e;
        }
        .top-bar-left, .top-bar-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .top-bar svg {
            width: 24px;
            height: 24px;
            fill: #e0e0e0;
        }

        /* --- Left Instrument Panel --- */
        .instrument-panel {
            grid-area: left;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            padding: 40px 20px;
            box-sizing: border-box;
            border-right: 1px solid #2c2c2e;
        }

        .driving-info {
            width: 100%;
        }

        .speed-display {
            text-align: center;
            margin-bottom: 30px;
        }

        .speed-value {
            font-size: 90px;
            font-weight: 200;
            line-height: 1;
            color: #fff;
        }

        .speed-unit {
            font-size: 24px;
            color: #aaa;
            font-weight: 300;
        }
        
        .gear-selector {
            display: flex;
            justify-content: center;
            gap: 25px;
            font-size: 28px;
            font-weight: 500;
            color: #666;
            margin-bottom: 50px;
        }

        .gear-selector .gear-active {
            color: #3e8ffE;
        }

        .details-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            text-align: center;
        }

        .detail-item .value {
            font-size: 28px;
            font-w.........完整代码请登录后点击上方下载按钮下载查看

网友评论0