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>
  • 相关阅读:
    kvm虚拟化存储管理
    k8s集群部署
    docker版的zabbix部署
    docker进阶——数据管理与网络
    docker基础
    ceph对接openstack环境
    java命令--jmap命令使用
    JVM性能分析工具jstack介绍
    SkipList跳表基本原理
    NIO之Channel、Buffer
  • 原文地址:https://www.cnblogs.com/wangqiniqn/p/6247044.html
Copyright © 2011-2022 走看看