tnblog
首页
视频
资源
登录

旋转相册

3645人阅读 2020/4/30 2:46 总访问:413387 评论:0 收藏:0 手机
分类: ASP.NET

<style type="text/css">
    * {
        padding: 0;
        margin: 0;
    }

    body, html {
        height: 100%;
    }

    body {
        background-image: url("../../Content/images/10.jpg");
        background-size: 100% 100%;
    }

    #box {
        width: 280px;
        height: 400px;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        transform-style: preserve-3d;
        transform: rotateX(0deg) rotateY(0deg);
        animation: go 45s linear infinite;
    }

        #box img {
            width: 280px;
            height: 400px;
            position: absolute;
            left: 0;
            top: 0;
        }

            #box img:nth-child(1) {
                transform: rotateY(0deg) translateZ(650px);
            }

            #box img:nth-child(2) {
                transform: rotateY(36deg) translateZ(650px);
            }

            #box img:nth-child(3) {
                transform: rotateY(72deg) translateZ(650px);
            }

            #box img:nth-child(4) {
                transform: rotateY(108deg) translateZ(650px);
            }

            #box img:nth-child(5) {
                transform: rotateY(144deg) translateZ(650px);
            }

            #box img:nth-child(6) {
                transform: rotateY(180deg) translateZ(650px);
            }

            #box img:nth-child(7) {
                transform: rotateY(216deg) translateZ(650px);
            }

            #box img:nth-child(8) {
                transform: rotateY(252deg) translateZ(650px);
            }

            #box img:nth-child(9) {
                transform: rotateY(288deg) translateZ(650px);
            }

            #box img:nth-child(10) {
                transform: rotateY(324deg) translateZ(650px);
            }

    @@keyframes go {
        0% {
            transform: rotateX(0deg) rotateY(0deg);
        }

        25% {
            transform: rotateX(20deg) rotateY(180deg);
        }

        50% {
            transform: rotateX(0deg) rotateY(360deg);
        }

        75% {
            transform: rotateX(-20deg) rotateY(540deg);
        }

        100% {
            transform: rotateX(0deg) rotateY(720deg);
        }
    }
</style>
<body>
    <div id="box">
        <img src="~/Content/images/婷婷1.jpg" />
        <img src="~/Content/images/婷婷2.jpeg" />
        <img src="~/Content/images/婷婷3.jpg" />
        <img src="~/Content/images/婷婷4.jpg" />
        <img src="~/Content/images/婷婷5.jpg" />
        <img src="~/Content/images/婷婷6.jpg" />
        <img src="~/Content/images/婷婷7.jpg" />
        <img src="~/Content/images/婷婷8.jpg" />
        <img src="~/Content/images/婷婷9.jpg" />
        <img src="~/Content/images/婷婷10.jpg" />
    </div>
</body>

评价
当你知道迷惑时,并不可怜,当你不知道迷惑时,才是最可怜的。
排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2024TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:50010702506256
欢迎加群交流技术