three实现爱心表白粒子文字烟花秀绽放动画效果代码
代码语言:html
所属分类:表白
代码描述:three实现爱心表白粒子文字烟花秀绽放动画效果代码
代码标签: three 爱心 表白 粒子 文字 烟花 秀 绽放 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>致我的爱人 - 星空烟花</title>
<style>
body {
margin: 0;
overflow: hidden;
background: radial-gradient(circle at bottom, #1a0b2e 0%, #000000 100%); /* 浪漫紫夜渐变 */
font-family: 'Microsoft YaHei', sans-serif;
}
#canvas-container { width: 100vw; height: 100vh; display: block; }
/* 浪漫 UI 风格 */
#ui-container {
position: absolute;
bottom: 50px;
left: 50%;
transform: translateX(-50%);
z-index: 10;
background: rgba(255, 255, 255, 0.1);
padding: 12px 25px;
border-radius: 50px;
border: 1px solid rgba(255, 192, 203, 0.3);
backdrop-filter: blur(10px);
display: flex;
gap: 15px;
box-shadow: 0 0 30px rgba(255, 105, 180, 0.2);
transition: opacity 0.5s;
}
input {
background: rgba(0,0,0,0.2);
border: none;
border-bottom: 2px solid #ff69b4; /* 粉色下划线 */
color: #fff;
padding: 8px 15px;
font-size: 16px;
width: 160px;
text-align: center;
outline: none;
transition: 0.3s;
}
input::placeholder { color: rgba(255,255,255,0.5); }
input:focus { border-color: #fff; text-shadow: 0 0 10px #ff69b4; }
button {
border: none;
padding: 8px 25px;
border-radius: 25px;
cursor: pointer;
font-size: 15px;
color: white;
background: linear-gradient(90deg, #ff69b4, #ff1493); /* 玫瑰红渐变 */
box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
transition: all 0.3s;
}
button:hover {
transform: scale(1.05);
box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
}
/* 覆盖层 */
#overlay {
position: absolute; top: 0; left:.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0