three实现全球三维在线收听电台代码
代码语言:html
所属分类:三维
代码描述:three实现全球三维在线收听电台代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Realistic 3D Radio Globe</title>
<style>
body { margin: 0; overflow: hidden; background-color: #000; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: white; }
#canvas-container { width: 100vw; height: 100vh; background: radial-gradient(circle at center, #080810 0%, #000000 100%); }
/* UI Overlay */
#ui-layer {
position: absolute;
top: 20px;
left: 20px;
pointer-events: none;
z-index: 10;
}
h1 { margin: 0; text-transform: uppercase; letter-spacing: 2px; font-size: 24px; text-shadow: 0 0 10px #00aaff; }
p { font-size: 14px; color: #aaa; max-width: 300px; }
/* Player Controls */
#player {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
background: rgba(20, 20, 30, 0.8);
padding: 15px 25px;
border-radius: 30px;
border: 1px solid #555;
display: flex;
align-items: center;
gap: 20px;
backdrop-filter: blur(10px);
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
transition: all 0.3s ease;
opacity: 0;
pointer-events: auto;
}
#player.active { opacity: 1; bottom: 50px; }
.station-info { display: flex; flex-direction: column; }
.station-name { font-weight: bold; color: #00aaff; }
.station-loc { font-size: 0.8em; color: #ccc; }
.status-indicator {
width: 10px; height: 10px; background: #555; border-radius: 50%;
box-shadow: 0 0 5px #555;
}
.playing .status-indicator { background: #0f0; box-shadow: 0 0 10px #0f0; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
/* Loading Overlay */
#loader {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
background: #000; display: flex; justify-content: center; align-items: center;
z-index: 999; transition: opacity 0.5s; flex-direction: column;
}
.spinner { width: 40px; height: 40px; border: 4px solid #333; border-top: 4px solid #00aaff; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 10px;}
.loading-text { color: #00aaff; font-size: 12px; letter-spacing: 1px; }
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0