1 Star 0 Fork 0

wangchito/中秋

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 2.99 KB
一键复制 编辑 原始数据 按行查看 历史
wangchito 提交于 2021-09-13 14:11 . feat
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>中秋</title>
<link rel="stylesheet" href="./css/main.css" />
<link rel="stylesheet" href="./css/back.css" />
<link rel="stylesheet" href="./css/style.css" />
<link rel="stylesheet" href="./css/text.css" />
</head>
<body>
<!-- particles.js container -->
<div style="position: absolute; left: 100px; top: 100px">
<svg height="500" width="500">
<defs>
<filter id="distortionFilter">
<feTurbulence
id="turbolence"
type="fractalNoise"
baseFrequency="5"
numOctaves="10"
seed="10"
stitchTiles="noStitch"
x="0%"
y="0%"
width="100%"
height="100%"
result="noise"
></feTurbulence>
<feDisplacementMap
in="SourceGraphic"
in2="noise"
scale="50"
xChannelSelector="R"
yChannelSelector="B"
x="0%"
y="0%"
width="100%"
height="100%"
filterUnits="userSpaceOnUse"
></feDisplacementMap>
<animate
xlink:href="#turbolence"
attributeName="baseFrequency"
dur="20s"
keyTimes="0;0.5;1"
values="5;5.1;5;"
repeatCount="indefinite"
></animate>
</filter>
</defs>
<circle
cx="200"
cy="200"
r="100"
fill="#E9E9E9"
filter="url(#distortionFilter)"
></circle>
</svg>
</div>
<div id="particles-js">
<div class="loading">但愿人长久&nbsp千里共婵娟</div>
</div>
<div class="heart love1"></div>
<div class="heart love2"></div>
<div class="img"></div>
<!-- scripts -->
<script src="./js/text.js"></script>
<script src="./js/particles.js"></script>
<script src="./js/app.js"></script>
<!-- stats.js -->
<script src="./js/lib/stats.js"></script>
<script>
var count_particles, stats, update;
stats = new Stats();
stats.setMode(0);
stats.domElement.style.position = "absolute";
stats.domElement.style.left = "0px";
stats.domElement.style.top = "0px";
document.body.appendChild(stats.domElement);
count_particles = document.querySelector(".js-count-particles");
update = function () {
stats.begin();
stats.end();
if (
window.pJSDom[0].pJS.particles &&
window.pJSDom[0].pJS.particles.array
) {
count_particles.innerText =
window.pJSDom[0].pJS.particles.array.length;
}
requestAnimationFrame(update);
};
requestAnimationFrame(update);
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangchito/mid-autumn-festival.git
git@gitee.com:wangchito/mid-autumn-festival.git
wangchito
mid-autumn-festival
中秋
master

搜索帮助