3d转换——3d播放器

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        .five{
            width: 200px;
            height: 200px;
            /*background-color: pink;*/
            position: absolute;
            bottom:100px;
            margin-top:100px;
            left: 50%;
            margin-left: -100px;
            transform-style:preserve-3d;
            /*transform:rotateX(-5deg);*/
            animation:moveJ 6s linear 0s infinite normal;
        }
        @keyframes moveJ {
            /*
            注意点:
            1.动画中如果有和默认样式中同名的属性,会覆盖默认样式中同名的属性
            2.在编写动画的时候,固定不变的值写在前面,需要变化的值写在后面
            */
            from{
                transform:rotateX(-5deg) rotateY(0deg);
            }
            to{
                transform:rotateX(-5deg) rotateY(360deg);
            }
        }
        .five li{
            list-style: none;
            width: 200px;
            height: 200px;
            font-size:50px;
            text-align: center;
            line-height: 200px;
            position: absolute;
            left: 0;
            top: 0;
            background-color: black;
        }
        .five li:nth-child(1){
            /*background-color: red;*/
            transform: rotateY(60deg) translateZ(200px);
        }
        .five li:nth-child(2){
            /*background-color: blue;*/
            transform: rotateY(120deg) translateZ(200px);
        }
        .five li:nth-child(3){
            /*background-color: yellow;*/
            transform: rotateY(180deg) translateZ(200px);
        }
        .five li:nth-child(4){
            /*background-color:green;*/
            transform: rotateY(240deg) translateZ(200px);
        }
        .five li:nth-child(5){
            /*background-color: white;*/
            transform: rotateY(300deg) translateZ(200px);
        }
        .five li:nth-child(6){
            /*background-color: gray;*/
            transform: rotateY(360deg) translateZ(200px);
        }
        .five li img{
            width: 200px;
            height: 200px;
            border: 5px solid pink;
            box-sizing: border-box;
        }
        .five:hover{
            animation-play-state:paused;
        }
        .five:hover li img{
            opacity: 0.5;
        }
        .five li:hover img{
            opacity: 1;
            width: 220px;
            height: 220px;

        }
        .doge{
            width: 80px;
            height: 86px;
            position: absolute;
            left: 100px;
            bottom: 100px;
            animation:good 10s linear 0s infinite normal;
        }
        @keyframes good {
            0%{
                left: 100px;
                bottom: 100px;
                opacity: 1;
            }
            20%{
                left: 300px;
                bottom: 300px;
                opacity:0;
            }
            40%{
                left: 500px;
                bottom: 500px;
                opacity: 1;
            }
            60%{
                left: 800px;
                bottom: 300px;
                opacity: 0;
            }
            80%{
                left: 1000px;
                bottom: 100px;
                opacity: 1;
            }
            100%{
                left: 800px;
                bottom: -200px;
            }
        }
    </style>

</head>
<body>

<ul class="five">
    <li><img src="image/Jay1.jpg" alt=""></li>
    <li><img src="image/Jay2.jpg" alt=""></li>
    <li><img src="image/Jay3.jpg" alt=""></li>
    <li><img src="image/Jay4.jpg" alt=""></li>
    <li><img src="image/Jay5.jpg" alt=""></li>
    <li><img src="image/Dog.jpg" alt=""></li>
</ul>
<img src="image/kuaihuo.jpg" class="doge">
<audio src="../music/华语群星%20-%20稻香.mp3" autoplay="autoplay" loop="loop"></audio>

</body>
</html>

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值