three实现本地视频转4D立方体可视化代码
代码语言:html
所属分类:其他
代码由deepseek-4.1 ai生成,可能有错误,仅供参考:点击查看提示词
代码描述:视频转4D立方体可视化
代码标签: three 本地 视频 转 4D 立方体 可视化 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<title>视频 → 4D 立方体 · Video Slice Cube</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
background: radial-gradient(circle at 50% 38%, #0b1220 0%, #04050a 68%);
color: #e6ebf5;
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
-webkit-font-smoothing: antialiased;
}
#scene { position: fixed; inset: 0; display: block; width: 100%; height: 100%; }
/* ---------- 左上角标题 ---------- */
#hud { position: fixed; left: 22px; top: 18px; z-index: 5; pointer-events: none; }
#hud h1 {
font-size: 14px; font-weight: 600; letter-spacing: .24em;
color: #cdf7ef; text-shadow: 0 0 24px rgba(62, 224, 200, .45);
}
#hud p { font-size: 11px; color: #64788c; margin-top: 7px; letter-spacing: .06em; }
/* ---------- 开场卡片 ---------- */
#intro {
position: fixed; inset: 0; z-index: 20;
display: flex; align-items: center; justify-content: center;
background: radial-gradient(circle at 50% 50%, rgba(4,5,10,.35) 0%, rgba(4,5,10,.82) 75%);
transition: opacity .45s ease, visibility .45s;
}
#intro.hide { opacity: 0; visibility: hidden; pointer-events: none; }
#intro .card {
width: min(430px, 88vw); text-align: center;
padding: 34px 30px 28px; border-radius: 22px;
background: rgba(14, 18, 30, .82);
border: 1px solid rgba(62, 224, 200, .18);
box-shadow: 0 30px 90px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255,255,255,.05);
backdrop-filter: blur(16px);
}
#intro .ring {
width: 56px; height: 56px; margin: 0 auto 18px;
border-radius: 50%; display: grid; place-items: center;
font-size: 18px; color: #3ee0c8; padding-left: 3px;
border: 1px solid rgba(62, 224, 200, .45);
box-shadow: 0 0 30px rgba(62, 224, 200, .25), inset 0 0 20px rgba(62,224,200,.12);
}
#intro h2 { font-size: 17px; font-weight: 600; letter-spacing: .04em; }
#intro p {
font-size: 12.5px; line-height: 1.85; color: #8298ad;
margin: 12px 0 22px;
}
#intro p b { color: #3ee0c8; font-weight: 600; }
#intro .hint { font-size: 11px; color: #55677a; margin-top: 14px; letter-spacing: .04em; }
/* ---------- 按钮 ----------.........完整代码请登录后点击上方下载按钮下载查看















网友评论0