zoukankan      html  css  js  c++  java
  • css实现翻面效果

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <title>css翻面</title>
        <style type="text/css">
            .box {
                width: 300px;
                height: 272px;
                margin: 50px auto 0;
                transform-style: preserve-3d;
                position: relative;
            }
    
            .box .front {
                width: 300px;
                height: 272px;
                text-align: center;
                line-height: 272px;
                position: absolute;
                background-color: red;
                left: 0;
                top: 0;
                transform: perspective(800px) rotateY(0deg);
                backface-visibility: hidden;
                transition: all 500ms ease;
            }
    
            .box .back_info {
                width: 300px;
                height: 272px;
                text-align: center;
                line-height: 272px;
                background-color: gold;
                position: absolute;
                left: 0;
                top: 0;
                transform: rotateY(180deg);
                backface-visibility: hidden;
                transition: all 500ms ease;
            }
    
            .box:hover .front {
                transform: perspective(800px) rotateY(180deg);
            }
    
            .box:hover .back_info {
                transform: perspective(800px) rotateY(0deg);
            }
        </style>
    </head>
    
    <body>
        <div class="box">
            <div class="front">我是正面文字说明</div>
            <div class="back_info">我是背面文字说明</div>
        </div>
    </body>
    
    </html>

    参考https://www.toutiao.com/i6737657633232126472/

  • 相关阅读:
    Linux环境变量$PATH
    grep
    echo命令
    ip命令
    浅析Linux下的/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc文件
    shell脚本4种执行方式
    /proc路径
    tr命令
    Linux命令cut
    前端论坛网站知识
  • 原文地址:https://www.cnblogs.com/lwming/p/11575758.html
Copyright © 2011-2022 走看看