📂文章目录
二、📚网站介绍
📒网站文件方面: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.视频演示
112 3D旋转相册-流星雨
🧩 2.图片演示
四、💒 网站代码
🧱HTML结构代码
<!--
* @Author: your name
* @Date: 2021-08-05 09:38:42
* @LastEditTime: 2021-08-06 10:05:30
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \(自动旋转)3D旋转相册-流星雨\index.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>520-❤</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/style1.css">
<script src='https://cdn.bootcss.com/jquery/1.11.3/jquery.js'></script>
</head>
<body>
<!-- 背景S -->
<audio controls autoplay>
<source src="mp3/520.mp3">
</audio>
<div style="position:fixed;width: 100%;height:100%;top:0; z-index:-1;">
<div id="background" class="wall"></div>
<div id="midground" class="wall"></div>
<div id="foreground" class="wall"></div>
<div id="top" class="wall"></div>
</div>
<!-- 背景E -->
<!-- 3D旋转相册 -->
<div id="drag-container">
<div id="spin-container">
<!-- <img src="img/pexels-photo-206395.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="">
<img src="img/pexels-photo-1391498.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="">
<img src="img/pexels-photo-1382731.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="">
<img src="img/pexels-photo-1758144.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="">
<img src="img/pexels-photo-1382734.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="">
<img src="img/pexels-photo-1462636.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt=""> -->
<!-- 相片 可以放多张 6-10张合适-->
<img src="img/1.jpg" alt="">
<img src="img/2.jpg" alt="">
<img src="img/3.jpg" alt="">
<img src="img/4.jpg" alt="">
<img src="img/5.jpg" alt="">
<img src="img/6.jpg" alt="">
<img src="img/7.jpg" alt="">
<img src="img/8.jpg" alt="">
<img src="img/9.jpg" alt="">
<img src="img/10.jpg" alt="">
<!-- 可放外链图片 -->
<!-- <a target="_blank" href="img/pexels-photo-139829.jpeg">
<img src="img/pexels-photo-139829.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt="">
</a> -->
<!-- 告白视频 -->
<!-- <video controls autoplay="autoplay" loop>
<source src="https://blz-videos.nosdn.127.net/1/OverWatch/OVR_D.VA_SHOOTING_STAR_zhCN_YT_PC_3.mp4?s=338c48ac2dfcb1d4c0689968b5baf94eee6ca0c1&profile_id=165&oauth2_token_id=57447761" type="video/mp4">
</video> -->
<!-- 告白文字-->
<p>520-❤-小倩</p>
</div>
<div id="ground"></div>
</div>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/script.js"></script>
</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("../bgimg/bg8.jpg") no-repeat;
/* background: url("../bgimg/bg01.webp") ; */
/* background: url("../bgimg/bg9.jpg") no-repeat; */
/* background: url("../bgimg/bg3.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("../bgimg/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("../bgimg/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("../bgimg/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%;
}
}
五、🎁更多源码
1.如果我的博客对你有帮助 请 “👍点赞” “✍️评论” “💙收藏”
一键三连哦!