three实现三维可视化分层汉堡定制diy代码
代码语言:html
所属分类:三维
代码描述:three实现三维可视化分层汉堡定制diy代码,可自由选择添加料内容。
代码标签: three 三维 可视化 分层 汉堡 定制 diy 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
margin: 0;
padding: 0;
height: 100dvh;
width: 100dvw;
background-color: #f9f9f9;
overflow: hidden;
}
canvas { display: block; }
.container {
display: grid;
grid-template-columns: 30dvw 1fr;
grid-template-rows: 1fr;
height: 100vh;
}
.sidebar {
grid-area: 1 / 1 / 2 / 2;
display: flex;
flex-direction: column;
padding: 25px;
background: linear-gradient(135deg, #ff9966, #ff5e62);
box-shadow: 5px 0 15px rgba(0,0,0,0.1);
overflow-y: auto;
}
.logo {
text-align: center;
margin-bottom: 30px;
}
.logo h1 {
color: white;
font-size: 26px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.ingredient-category {
margin-bottom: 20px;
}
.category-title {
color: white;
background-color: rgba(0,0,0,0.2);
padding: 10px 15px;
border-radius: 8px;
margin-bottom: 15px;
font-weight: bold;
}
.sidebar button {
margin: 6px 0;
padding: 12px;
cursor: pointer;
border-radius: 8px;
border: none;
background-color: white;
color: #333;
font-weight: 600;
transition: all 0.3s ease;
width: 100%;
text-align: left;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.sidebar button:hover {
background-color: #f5f5f5;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.sidebar button img {
width: 24px;
vertical-align: middle;
margin-right: 10px;
}
.controls {
margin-top: auto;
padding-top: 20px;
border-top: 1px solid rgba(255,255,255,0.3);
}
#reset-btn {
background-color: #ff3b30;
color: white;
}
#reset-btn:hover {
background-color: #e52d22;
}
.main {
grid-area: 1 / 2 / 2 / 3;
position: relative;
background-color: #fff;
display: flex;
flex-direction: column;
}
.burger-frame {
flex: 1;
border: 15px solid #8B4513;
border-radius: 10px;
margin: 20px;
position: relative;
box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
overflow: hidden;
}
.info-panel {
position: absolute;
top: 20px;
right: 5em;
width: 250px;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 10px;
padding: 20px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
z-index: 100;
}
.info-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 15px;
color: #333;
text-align: center;
border-bottom: 2px solid #ff5e62;
padding-bottom: 10px;
}
.info-content {
font-size: 14px;
}
.stat {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
.progress-bar {
width: 100%;
height: 10px;
background-color: #eee;
border-radius: 5px;
margin-top: 5px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #ff9966, #ff5e62);
width: 0%;
t.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0