公众号:一号软件
页面字体:在index中更改
背景图片:放在了style.css第七行更改
部分代码
<!DOCTYPE html>
<html lang="zh-CN">
<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>
<meta name="keywords" content="复刻李峋爱心,李峋爱心代码,李峋同款爱心代码,爱心代码,李峋爱心代码,爱心">
<meta name="description" content="这可是李峋同款爱心代码~">
<link rel="shortcut icon" href="/favicon.ico" type="ico">
<link rel="stylesheet" href="style.css">
</head>
<body>
<p class="love_you">宝 多喝热水啊</p>
<canvas id="lovexf"></canvas>
<script src="script.js"></script>
</body>
</html>
* {
padding: 0;
margin: 0;
}
body {
background: url(https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dec470b0-fed6-46e5-be53-ec85fadc01be/b3997a29-3506-4fa5-9a54-57b967b1990a.webp) no-repeat center center;
background-size: cover;
height: 100vh;
}
body::after {
content: '';
display: block;
position: absolute;
width: 100%;
height: 100vh;
-webkit-background-color: rgba(0, 0, 0, .5);
background-color: rgba(0, 0, 0, .5);
}
audio,
.love_you {
position: absolute;
left: 50%;
top: 1.5rem;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
z-index: 1809185784;
}
.love_you {
top: 45%;
font-family: Georgia, 'Times New Roman', Times, serif;
font-size: 1.3rem;
font-weight: bold;
color: #ffc0cb;
letter-spacing: .05rem;
-moz-animation: love-xf 1.2s alternate ease-in-out;
-webkit-animation: love-xf 1.2s alternate ease-in-out;
animation: love-xf 1.2s alternate ease-in-out;
user-select: none;
-webkit-text-shadow: 0 0 8px #fff;
text-shadow: 0 0 8px #fff;
}
#lovexf {
position: absolute;
width: 100%;
height: 100%;
z-index: 520;
}
@keyframes love-xf {
0% {
opacity: 0.08;
filter: blur(8px);
letter-spacing: .1rem;
}
100% {
opacity: 1;
filter: blur(0);
letter-spacing: .05rem;
}
}
下载地址 复刻李峋爱心代码