three实现三维带音效调节参数的碎纸机动画效果代码
代码语言:html
所属分类:三维
代码描述:three实现三维带音效调节参数的碎纸机动画效果代码
代码标签: three 三维 音效 调节 参数 碎纸机 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D碎纸机模拟器</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
overflow: hidden;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
font-family: 'Microsoft YaHei', sans-serif;
}
#container {
width: 100vw;
height: 100vh;
}
/* 控制面板 */
.control-panel {
position: fixed;
top: 20px;
left: 20px;
background: rgba(255, 255, 255, 0.95);
padding: 25px;
border-radius: 20px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
z-index: 100;
min-width: 280px;
}
.control-panel h2 {
font-size: 22px;
margin-bottom: 20px;
color: #333;
display: flex;
align-items: center;
gap: 10px;
}
.control-group {
margin-bottom: 18px;
}
.control-group label {
display: block;
margin-bottom: 8px;
font-size: 14px;
color: #666;
font-weight: 500;
}
.btn {
width: 100%;
padding: 14px;
border: none;
border-radius: 12px;
cursor: pointer;
font-size: 16px;
font-weight: 600;
transition: all 0.3s;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.btn-primary {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.btn-success {
background: linear-gradient(135deg, #11998e, #38ef7d);
color: white;
}
.btn-success:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}
.btn-danger {
background: linear-gradient(135deg, #eb3349, #f45c43);
color: white;
}
.btn-danger:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(235, 51, 73, 0.4);
}
.btn-warning {
background: linear-gradient(135deg, #f093fb, #f5576c);
color: white;
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none !important;
}
.slider-container {
display: flex;
align-items: center;
gap: 15px;
}
.slider {
flex: 1;
height: 8px;
border-radius: 4px;
-webkit-appearance: none;
background: linear-gradient(90deg, #667eea, #764ba2);
outline: none;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 22px;
height: 22px;
border-radius: 50%;
background: white;
cursor: pointer;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.slider-value {
min-width: 45px;
text-align: center;
font-weight: bold;
color: #667eea;
}
.status-indicator {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 15px;
background: #f8f9fa;
border-radius: 10px;
margin-bottom: 15px;
}
.status-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: #dc3545;
animation: none;
}
.status-dot.running {
background: #28a745;
animation: pulse 1s infinite;
}
@keyframes pulse {
0%, 100% { opac.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0