zoukankan      html  css  js  c++  java
  • 06_移动端-3D转换-3

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>D转换-3</title>
        <style>
            body {
                perspective: 400px;
            }
            
            .box {
                position: relative;
                border: 1px solid #eee;
                height: 300px;
                width: 300px;
                margin: 100px auto;
                transition: all .4s;
                transform-style: preserve-3d;
            }
            
            .box:hover {
                transform: rotateY(180deg);
            }
            
            .box div {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                border-radius: 50%;
                font-size: 30px;
                color: #fff;
                text-align: center;
                line-height: 300px;
            }
            
            .front {
                background-color: pink;
            }
            
            .back {
                background-color: purple;
                /* 像手机背靠背 */
                transform: rotateY(180deg);
            }
        </style>
    </head>
    
    <body>
        <div class="box">
            <!-- .font+.back -->
            <div class="front">前面</div>
            <div class="back">后面</div>
        </div>
    </body>
    
    </html>
  • 相关阅读:
    Mysql之binlog日志说明及利用binlog日志恢复数据操作记录
    JS使用Cookie
    vue2 生命周期
    vue2 手记
    vue2 design 手记
    composer.json详解
    mysql查询优化
    dockerfile
    一套不错的docker lnmp
    服务器部署docker lnmp环境
  • 原文地址:https://www.cnblogs.com/luwei0915/p/15364798.html
Copyright © 2011-2022 走看看