zoukankan      html  css  js  c++  java
  • 图片反转效果

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style type="text/css">
            /* entire container, keeps perspective */
    .flip-container {
        perspective: 1000;
    }
        /* flip the pane when hovered */
        .flip-container:hover .flipper, .flip-container.hover .flipper {
            transform: rotateY(180deg);
        }
    .flip-container, .front, .back {
        width: 320px;
        height: 480px;
    }
    /* flip speed goes here */
    .flipper {
        transition: 0.6s;
        transform-style: preserve-3d;
        position: relative;
    }
    /* hide back of pane during swap */
    .front, .back {
        backface-visibility: hidden;
        position: absolute;
        top: 0;
        left: 0;
    }
    /* front pane, placed above back */
    .front {
        z-index: 2;
    }
    /* back, initially hidden pane */
    .back {
        transform: rotateY(180deg);
    }
        </style>
    </head>
    <body>
        <div class="flip-container" ontouchstart="this.classList.toggle('hover');">
        <div class="flipper">
            <div class="front">
                <!-- 前面内容 -->
                <img src="http://pic0.xihuan.me/edr/680__/t021499be002a3f0cf1.jpg" height="700"  alt="">
            </div>
            <div class="back">
            <img src="http://pic2.xihuan.me/edr/680__/t029373f8f522a8bc97.jpg" height="700"  alt="">
                <!-- 背面内容 -->
            </div>
        </div>
    </div>
    </body>
    </html>

    Document

  • 相关阅读:
    Ubuntu 13.04 配置Cocos2d-x记录
    Ubuntu系列Crontab日记记录
    只是为了拾起一只笔,所以写了这些
    XhProf安装教程–详细教程
    检查.gitignore语法
    JavaScript设置右下角悬浮窗
    Codeforces Round #428 (Div. 2) B
    2017 多校5 hdu 6093 Rikka with Number
    cf 834 E. Ever-Hungry Krakozyabra
    codeforces 834 D. The Bakery
  • 原文地址:https://www.cnblogs.com/ccxiaomaomi/p/5650816.html
Copyright © 2011-2022 走看看