three实现三维公寓九宫格房间装修内饰代码
代码语言:html
所属分类:三维
代码描述:three实现三维公寓九宫格房间装修内饰代码
代码标签: 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>3D Interactive Apartment Tour - 145 sqm Modern Minimalist</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
overflow: hidden;
background: #1a1a2e;
}
#canvas-container {
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
}
.ui-overlay {
position: fixed;
z-index: 100;
pointer-events: none;
}
.ui-overlay > * {
pointer-events: auto;
}
/* Header */
.header {
top: 20px;
left: 50%;
transform: translateX(-50%);
text-align: center;
}
.header h1 {
color: #fff;
font-size: 1.5rem;
font-weight: 300;
text-shadow: 0 2px 10px rgba(0,0,0,0.5);
letter-spacing: 2px;
}
.header .subtitle {
color: rgba(255,255,255,0.7);
font-size: 0.85rem;
margin-top: 5px;
}
/* Room Navigation */
.room-nav {
top: 100px;
left: 20px;
display: flex;
flex-direction: column;
gap: 8px;
}
.room-btn {
background: rgba(255,255,255,0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.2);
color: #fff;
padding: 12px 20px;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.9rem;
text-align: left;
min-width: 160px;
}
.room-btn:hover {
background: rgba(255,255,255,0.2);
transform: translateX(5px);
}
.room-btn.active {
background: rgba(100,200,255,0.3);
border-color: rgba(100,200,255,0.5);
}
.room-btn .icon {
margin-right: 8px;
}
/* Controls Panel */
.controls-panel {
bottom: 20px;
left: 20px;
display: flex;
gap: 10px;
}
.control-btn {
background: rgba(255,255,255,0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.2);
color: #fff;
width: 50px;
height: 50px;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
}
.control-btn:hover {
background: rgba(255,255,255,0.25);
transform: scale(1.1);
}
.control-btn.active {
background: rgba(255,200,100,0.3);
border-color: rgba(255,200,100,0.5);
}
/* Info Panel */
.info-panel {
bottom: 20px;
right: 20px;
background: rgba(0,0,0,0.6);
backdrop-filter: blur(10px);
border-radius: 12px;
padding: 20px;
color: #fff;
max-width: 280px;
}
.info-panel h3 {
font-size: 1.1rem;
margin-bottom: 10px;
color: rgba(100,200,255,1);
}
.info-panel p {
font-size: 0.85rem;
line-height: 1.6;
color: rgba(255,255,255,0.8);
}
.info-panel .stats {
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid rgba(255,255,255,0.2);
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.stat {
text-align: center;
}
.stat-value {
font-size: 1.5rem;
font-weight: 600;
color: rgba(100,200,255,1);
}
.stat-label {
font-size: 0.75rem;
color: rgba(255,255,255,0.6);
text-transform: uppercase;
}
/* Instructions */
.instructions {
top: 100px;
right: 20px;
background: rgba(0,0,0,0.5);
backdrop-filter: blur(10px);
border-radius: 10px;
padding: 15px;
color: rgba(255,255,255,0.8);
font-size: 0.8rem;
}
.instructions h4 {
margin-bottom: 10px;
color: rgba(255,255,255,1);
}
.instructions p {
margin: 5px 0;
}
.key {
background: rgba(255,255,255,0.2);
padding: 2px 6px;
border-radius: 3px;
font-family: monospace;
}
/* Loading Screen */
#loading {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 1000;
transition: opacity 0.5s ease;
}
#loading.hidden {
opacity: 0;
pointer-events: none;
}
.loader {
width: 60px;
height: 60px;
border: 3px solid rgba(255,255,255,0.1);
border-top-color: rgba(100,200,255,1);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
#loading p {
color: rgba(255,255,255,0.8);
margin-top: 20px;
font-size: 0.9rem;
}
/* Light Mode Toggle */
.light-mode-indicator {
position: fixed;
top: 20px;
right: 20px;
background: rgba(255,255,255,0.1);
backdrop-filter: blur(10px);
border-radius: 30px;
padding: 10px 20px;
display: flex;
align-items: center;
gap: 10px;
z-index: 100;
}
.light-mode-indicator span {
color: #fff;
font-size: 0.9rem;
}
.toggle-switch {
width: 50px;
height: 26px;
background: rgba(255,255,255,0.2);
border-radius: 13px;
position: relative;
cursor: pointer;
transition: background 0.3s;
}
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0