3D转换模块——3D播放器

<!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>

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值