zoukankan      html  css  js  c++  java
  • 三维立体

    点一下,让它动起来。

    <!DOCTYPE html>
    <html>
    <head lang="en">
        <meta charset="UTF-8">
        <title></title>
        <style>
            *{margin:0;padding:0;list-style: none;}
            #box{
                 200px;
                height: 200px;
                margin: 100px auto;
                transform-style: preserve-3d;
                /*transform: perspective(800px) rotateY(-60deg) translateX(30px);*/
                transform: perspective(800px) rotateY(-60deg) rotateX(30deg);
                transition: all 5s ease;
            }
            #box div{
                 100%;
                height: 100%;
                position: absolute;
                line-height: 200px;
                text-align: center;
                color: #fff;
                font-size: 40px;
                opacity: 0.7;
            }
            #box .box1{
                background: red;
                transform: translateZ(100px);
            }
            #box .box2{
                background: green;
                transform: translateZ(-100px);
            }
            #box .box3{
                background: blue;
                transform: translateX(-100px) rotateY(90deg);
            }
            #box .box4{
                background: yellow;
                transform: translateY(-100px) rotateX(90deg);
            }
            #box .box5{
                background: pink;
                transform: translateY(100px) rotateX(90deg);
            }
            #box .box6{
                background: deepskyblue;
                transform: translateX(100px) rotateY(90deg);
            }
            #box:active{
                /*transform: perspective(800px) rotateY(-360deg) translateX(360px) ;*/
                transform: perspective(400px) rotateY(-3600deg) rotateX(3600deg) ;
            }
        </style>
    </head>
    <body>
    <div id="box">
        <div class="box1">1</div>
        <div class="box2">2</div>
        <div class="box3">3</div>
        <div class="box4">4</div>
        <div class="box5">5</div>
        <div class="box6">6</div>
    </div>
    </body>
    </html>
  • 相关阅读:
    Linux下面编译安装ffmpeg
    Fidder简单使用方法(HTTPS抓取和url替换)
    关于一下个阶段的计划
    JAVA的随机的字符串的封装(基本上够用了)
    Shell Script中的间接变量引用
    进程概念
    int main(int argc, char *argv[])的解读
    存储数组数据到SharedPreferences
    C语言中的基本声明
    C中关于指针数组的用法
  • 原文地址:https://www.cnblogs.com/wangqiniqn/p/6247044.html
Copyright © 2011-2022 走看看