three实现3d地球上任意两个城市之间飞行轨迹动画效果代码
代码语言:html
所属分类:三维
代码描述:three实现3d地球上任意两个城市之间飞行轨迹动画效果代码,选择起始位置城市,开启动画就能显示动画。
代码标签: three 3d 地球 任意 两个 城市 之间 飞行 轨迹 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>三维地球飞行轨迹动画 (增强版)</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            margin: 0;
            overflow: hidden;
            background-color: #000;
            color: #fff;
        }
        #info {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 15px 20px;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            z-index: 10;
        }
        h2 {
            margin: 0 0 10px 0;
            font-weight: 500;
        }
        label {
            margin-right: 10px;
        }
        select, button {
            padding: 8px 12px;
            border-radius: 4px;
            border: 1px solid #555;
            background: #333;
            color: #fff;
            cursor: pointer;
            margin-top: 5px;
        }
        button {
            background: #007bff;
            border-color: #007bff;
            font-weight: bold;
        }
        button:hover:not(:disabled) {
            background: #0056b3;
        }
        button:disabled {
            background: #555;
            cursor: not-allowed;
            opacity: 0.7;
        }
        #loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 1.5em;
            display: none;
            background: rgba(0,0,0,0.8);
            padding: 20px 30px;
            border-radius: 10px;
            z-index: 20;
        }
        /* 城市和距离标签的样式 */
        .city-label {
            color: #ffffff;
            font-size: 14px;
            padding: 4px 8px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 4px;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
            white-space: nowrap; /* 防止文字换行 */
        }
        .distance-label {
            color: #ffc107; /* 醒目的黄色 */
            font-size: 18px;
            font-weight: bold;
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.7);
            border: 1px solid #ffc107;
            border-radius: 5px;
            text-shadow: 1px 1px 3px rgba(0,0,0,1);
            white-space: nowrap;
        }
    </style>
</head>
<body>
    <div id="info">
        <h2>飞机飞行轨迹生成器</h2>
        <div.........完整代码请登录后点击上方下载按钮下载查看



 
				












 
			 
			 
				 
			 
	
网友评论0