three实现三维玻璃透明圈圈内文字旋转大屏展示代码
代码语言:html
所属分类:三维
代码描述:three实现三维玻璃透明圈圈内文字旋转大屏展示代码
代码标签: three 三维 玻璃 透明 圈圈 文字 旋转 大屏 展示 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
/* Corners-only neon — do NOT reuse elsewhere */
--corner-color: #00f5ff;
--corner-glow: 0 0 8px #00f5ff, 0 0 24px rgba(0,245,255,0.35);
/* UI palette — matches silver/glass model */
--silver: rgba(225, 228, 235, 0.85);
--silver-dim: rgba(200, 205, 215, 0.42);
--silver-faint: rgba(200, 205, 215, 0.18);
--delta: rgba(180, 220, 185, 0.8); /* subtle green, not neon */
--bg: rgba(4, 4, 6, 0.82);
--border: rgba(255, 255, 255, 0.1);
/* Iridescent bar — echoes the torus dispersion */
--iri-bar: linear-gradient(90deg,
rgba(160, 190, 230, 0.9),
rgba(195, 175, 225, 0.9));
}
body {
overflow: hidden;
background: #000;
font-family: 'Share Tech Mono', monospace;
color: var(--silver);
}
/* ── Canvas ───────────────────────────────────── */
.webgl {
position: fixed;
inset: 0;
width: 100%; height: 100%;
z-index: 0;
}
/* ── Vignette ─────────────────────────────────── */
.vignette {
position: fixed; inset: 0; z-index: 1; pointer-events: none;
background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0,0,0,0.72) 100%);
}
/* ── Scanlines ────────────────────────────────── */
.scanlines {
position: fixed; inset: 0; z-index: 2; pointer-events: none;
background: repeating-linear-gradient(
0deg, transparent, transparent 2px,
rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 4px
);
}
/* ── Corner brackets ──────────────────────────── */
.corner {
position: fixed;
width: 52px; height: 52px;
z-index: 20; pointer-events: none;
}
.corner::before, .corner::after {
content: '';
position: absolute;
background: var(--corner-color);
box-shadow: var(--corner-glow);
}
.corner.tl { top: 18px; left: 18px; }
.corner.tl::before { width: 2px; height: 100%; top: 0; left: 0; }
.corner.tl::after { height: 2px; width: 100%; top: 0; left: 0; }
.corner.tr { top: 18px; right: 18px; }
.corner.tr::before { width: 2px; height: 100%; top: 0; right: 0; }
.corner.tr::after { height: 2px; width: 100%; top: 0; right: 0; }
.corner.bl { bottom: 18px; left: 18px; }
.corner.bl::before { width: 2px; height: 100%; bottom: 0; left: 0; }
.corner.bl::after { height: 2px; width: 100%; bottom: 0; left: 0; }
.corner.br { bottom: 18px; right: 18px; }
.corner.br::before { width: 2px; height: 100%; bottom: 0; right: 0; }
.corner.br::after { height: 2px; width: 100%; bottom:.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0