• 背靠背效果


     1 <html lang="en">
     2 <head>
     3     <meta charset="UTF-8">
     4     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     5     <meta http-equiv="X-UA-Compatible" content="ie=edge">
     6     <title>背靠背</title>
     7     <style>
     8      /* div{ */
     9          /* 当元素不面向屏幕时是否可见 */
    10          /* backface-visibility: visible;  */
    11      /* } */ 
    12      body{
    13          perspective: 500px;
    14      }
    15      div{
    16          width: 200px;
    17          height: 300px;
    18          margin: 200px auto;
    19          position: relative;
    20          transform-style: preserve-3d;
    21        
    22      }
    23      div img{
    24          width: 200px;
    25          height: 300px;
    26          position: absolute;
    27          left: 0;
    28          top: 0;
    29          /* 过度效果 */
    30          transition: all 2s linear;
    31          
    32      }
    33      div img:first-child{
    34          z-index: 1;
    35          backface-visibility: hidden;
    36      }
    37      div:hover img{
    38          transform: rotateY(180deg)
    39      }
    40     </style>
    41 </head>
    42 <body>
    43    <div>
    44 
    45         <img src="images/1.jpg" alt="" width="200" height="300"/>
    46         <img src="images/2.jpg" alt="" width="200" height="300"/>
    47         
    48    </div>
    49     
    50 </body>
    51 </html>

  • 相关阅读:
    后向边
    图的割点、桥和双连通分支的基本概念
    Hihocoder 1062 最近公共祖先1
    会场问题 差分解法
    POJ2976 01分数规划 普通题
    Hihocoder 1049
    hihocoder 1050树中最长路
    Hihocoder 1055
    POJ1463
    C语言|博课作业02
  • 原文地址:https://www.cnblogs.com/yuanxiangguang/p/11324243.html
Copyright © 2020-2023  润新知