canva实现可调配置参数爱心粒子流表白动画效果代码
代码语言:html
所属分类:表白
代码描述:canva实现可调配置参数爱心粒子流表白动画效果代码
代码标签: canva 调 配置 参数 爱心 粒子 流 动画 表白
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
background-color: #000;
font-family: "Archivo Black", sans-serif;
color: white;
}
#c {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
#controls-container {
position: fixed;
top: 20px;
left: 20px;
z-index: 100;
}
#toggle-controls {
background: rgba(0, 0, 0, 0.7);
color: white;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
margin-bottom: 5px;
backdrop-filter: blur(5px);
}
#controls {
background: rgba(100, 100, 100, 0.2);
padding: 15px;
border-radius: 10px;
max-width: 300px;
backdrop-filter: blur(5px);
display: block;
}
.control-group {
margin: 10px 0;
display: flex;
align-items: center;
}
.control-group label {
width: 100px;
font-size: 14px;
margin-right: 10px;
}
.control-group input[type="range"] {
flex-grow: 1;
margin-right: 10px;
}
.control-group span {
width: 30px;
text-align: right;
font-size: 14px;
}
.control-group select {
flex-grow: 1;
padding: 5px;
border-radius: 4px;
background: #333;
color: white;
border: none;
}
.heart-outline {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 360px;
height: 320px;
fill: none;
stroke: rgba(255, 255, 255, 0.3);
stroke-width: 2;
pointer-events: none;
z-index: 10;
}
#intro-controls {
margin-top: 20px;
padding: 20px;
border-radius: 10px;
background-color: rgba(0, 0, 0, 0.5);
}
#intro-controls h2 {
font-size: 1.5em;
margin-bottom: 10px;
}
#intro-controls ul {
list-style-type: none;
padding: 0;
}
#intro-controls li {
margin-bottom: 5px;
font-size: 1em;
}
#toggle-fullscreen {
position: fixed;
top: 20px;
right: 20px;
background: rgba(0, 0, 0, 0.7);
color: white;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0