three+webgl实现液态文字融化动画模拟调节代码

代码语言:html

所属分类:动画

代码描述:three+webgl实现液态文字融化动画模拟调节代码

代码标签: three webgl 液态 文字 融化 动画 模拟 调节 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  


  
  
  
  
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--cream:  #eaf6ff;
	--ink:    #07090d;
	--redhot: #ff3a16;
	--cyan:   #2ee6ff;
}

html, body {
	height: 100%;
	background: #05070a;
	overflow: hidden;
	font-family: "Space Grotesk", system-ui, sans-serif;
}

.webgl { display: block; }

.ui {
	position: fixed;
	inset: 0;
	z-index: 5;
	padding: clamp(22px, 3.4vw, 44px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	pointer-events: none;
	color: #fff;
	mix-blend-mode: difference;
}
.ui-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.lockup { display: flex; flex-direction: column; gap: 14px; }

.mark {
	font-family: "Space Grotesk", sans-serif;
	font-weight: 600;
	font-size: clamp(15px, 1.5vw, 19px);
	letter-spacing: -0.01em;
	line-height: 1;
	display: flex;
	align-items: baseline;
	gap: 7px;
}
.mark .idx {
	font-family: "Space Mono", monospace;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.05em;
	opacity: 0.7;
}

.meta {
	font-family: "Space Mono", monospace;
	font-size: 11px;
	line-height: 1.7;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.85;
}
.meta span { display: block; }

.desc {
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(12px, 1.15vw, 14px);
	font-weight: 400;
	line-height: 1.45;
	max-width: 30ch;
	letter-spacing: 0.005em;
}
.desc::before {
	content: "";
	display: block;
	width: 26px;
	height: 1px;
	background: currentColor;
	margin-bottom: 12px;
	opacity: 0.6;
}

.credit {
	font-family: "Space Mono", monospace;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: right;
	white-space: nowrap;
	opacity: 0.85;
}

#panel {
	position: fixed;
	top: clamp(22px, 3.4vw, 44px);
	right: clamp(22px, 3.4vw, 44px);
	z-index: 10;
	width: 218px;
	padding: 16px 16px 14px;
	background: rgba(8, 11, 16, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 3px;
	color: rgba(255, 255, 255, 0.88);
	font-family: &qu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0