<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>标题</title>
<style>
* {
margin: 0;
padding: 0;
}
body{
background: url("background.png") no-repeat;
background-size: cover;
}
ul{
width: 200px;
height: 200px;
position: absolute;
left: 50%;
bottom: 100px;
margin-left: -100px;
transform-style: preserve-3d;
transform: rotateX(-30deg);
animation: move 10s linear 0s infinite normal;
}
ul li{
background-color: black;
list-style: none;
width: 200px;
height: 200px;
position: absolute;
}
ul:hover{
animation-play-state: paused;
}
ul:hover li img{
opacity: 0.5;
}
ul li:hover img{
opacity: 1;
}
ul li:nth-child(1){
transform: rotateY(60deg) translateZ(200px);
}
ul li:nth-child(2){
transform: rotateY(120deg) translateZ(200px);
}
ul li:nth-child(3){
transform: rotateY(180deg) translateZ(200px);
}
ul li:nth-child(4){
transform: rotateY(240deg) translateZ(200px);
}
ul li:nth-child(5){
transform: rotateY(300deg) translateZ(200px);
}
ul li:nth-child(6){
transform: rotateY(360deg) translateZ(200px);
}
ul li img{
width: 200px;
height: 200px;
border: 5px solid black;
box-sizing: border-box;
}
.heart{
height: 200px;
width: 200px;
position: absolute;
left: 10%;
bottom: 10%;
animation: hhh 10s linear 0s infinite normal;
}
audio{
position: absolute;
left: 0;
bottom: 0;
}
@keyframes move {
from{
transform: rotateX(-10deg) rotateY(0deg);
}
to{
transform: rotateX(-10deg) rotateY(360deg);
}
}
@keyframes hhh {
0%{
left: 10%;
bottom: 10%;
opacity: 1;
}
20%{
left: 30%;
bottom: 30%;
opacity: 0;
}
40%{
left: 50%;
bottom: 50%;
opacity: 1;
}
60%{
left: 80%;
bottom: 50%;
opacity: 0;
}
80%{
left: 90%;
bottom: 30%;
opacity: 1;
}
100%{
left: 100%;
bottom: 10%;
opacity: 0;
}
}
</style>
</head>
<body>
<ul>
<li><img src="timg-1.jpeg" alt=""></li>
<li><img src="timg-2.jpeg" alt=""></li>
<li><img src="timg-3.jpeg" alt=""></li>
<li><img src="timg-4.jpeg" alt=""></li>
<li><img src="timg-5.jpeg" alt=""></li>
<li><img src="timg-6.jpg" alt=""></li>
</ul>
<img src="heart.png" class="heart" alt="">
<audio src="Lemon.mp3" controls="controls"></audio>
</body>
</html>
3D转换模块——3D播放器
最新推荐文章于 2023-12-20 23:10:12 发布