📂文章目录


二、📚网站介绍

📒网站文件方面:html网页结构文件、css网页样式文件、js网页特效文件、images网页图片文件;

📙网页编辑方面:可使用任意HTML编辑软件(如:​​Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++​​​ 等任意html编辑软件进行运行及修改编辑等操作)。
其中:
(1)📜html文件包含:其中index.html是首页、其他html为二级页面;
(2)📑 css文件包含:css全部页面样式,3D动态效果,雪花飘落等等
(3)📄 js文件包含:页面炫酷效果实现


三、🔗网站效果

▶️1.视频演示

103 满天星星音乐背景动画特效

🧩 2.图片演示

程序员专属情人节表白网站(满天星3D相册)_前端


四、💒 网站代码

🧱HTML结构代码

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title>唯美满天星</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<audio controls autoplay>
<source src="mp3/Approaching%20Nirvana%20-%20You.mp3">
</audio>
<div id="background" class="wall"></div>
<div id="midground" class="wall"></div>
<div id="foreground" class="wall"></div>
<div id="top" class="wall"></div>
</body>
</html>

🏠CSS样式代码

html,body{
margin: 0;
padding: 0;
}
/*满天星*/
audio{
z-index: 5;
position: absolute;
bottom: 0;
opacity: 0.1;
-webkit-transition: all 2s;
-moz-transition: all 2s;
-ms-transition: all 2s;
-o-transition: all 2s;
transition: all 2s;
}
audio:hover{
opacity: 1;
}
.wall{
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
div#background{
background: url("../img/preview.jpg")no-repeat;
-webkit-animation: dd 100s linear infinite;
-moz-animation: dd 100s linear infinite;
-o-animation: dd 100s linear infinite;
animation: dd 100s linear infinite;
background-size: cover;
}
div#midground{
background: url("../img/midground.png");
z-index: 1;
-webkit-animation: cc 100s linear infinite;
-moz-animation: cc 100s linear infinite;
-o-animation: cc 100s linear infinite;
animation: cc 100s linear infinite;
}
div#foreground{
background: url("../img/foreground.png");
z-index: 2;
-webkit-animation: cc 153s linear infinite;
-o-animation: cc 153s linear infinite;
-moz-animation: cc 153s linear infinite;
animation: cc 153s linear infinite;
}
div#top{
background: url("../img/midground.png");
z-index: 4;
-webkit-animation: dd 100s linear infinite;
-o-animation: dd 100s linear infinite;
animation: da 100s linear infinite;
}
@-webkit-keyframes {
from{
background-position: 0 0;
transform: translateY(10px);
}
to{
background-position: 600% 0;
}
}
@-o-keyframes {
from{
background-position: 0 0;
transform: translateY(10px);
}
to{
background-position: 600% 0;
}
}
@-moz-keyframes {
from{
background-position: 0 0;
transform: translateY(10px);
}
to{
background-position: 600% 0;
}
}
@keyframes {
0%{
background-position: 0 0;
}
100%{
background-position: 600% 0;
}
}

@keyframes {
0%{
background-position: 0 0;
}
100%{
background-position: 0 600%;
}
}
@-webkit-keyframes {
0%{
background-position: 0 0;
}
100%{
background-position: 0 600%;
}
}
@-moz-keyframes {
0%{
background-position: 0 0;
}
100%{
background-position: 0 600%;
}
}
@-ms-keyframes {
0%{
background-position: 0 0;
}
100%{
background-position: 0 600%;
}
}