transfrom-style案例之旋转硬币 - 图1
    实现:

    1. <style>
    2. .ft {
    3. position: relative;
    4. transform-style: preserve-3d;
    5. width: 860px;
    6. height: 860px;
    7. margin: 50px auto;
    8. transition: all 0.7s;
    9. }
    10. .ft:hover {
    11. transform: rotateY(180deg);
    12. }
    13. .one,
    14. .two {
    15. position: absolute;
    16. top: 0;
    17. left: 0;
    18. width: 100%;
    19. height: 100%;
    20. border-radius: 50%;
    21. font-size: 70px;
    22. font-weight: 700;
    23. text-align: center;
    24. background: url(http://pic36.photophoto.cn/20150715/0007020080742327_b.jpg) no-repeat;
    25. background-position: -79px -93px;
    26. line-height: 860px;
    27. }
    28. .one {
    29. color: hotpink;
    30. z-index: 1;
    31. }
    32. .two {
    33. color: rgb(109, 173, 13);
    34. transform: rotateY(180deg);
    35. }
    36. </style>
    37. </head>
    38. <body>
    39. <div class="ft">
    40. <div class="one">郭芷妘</div>
    41. <div class="two">傅鸿杰</div>
    42. </div>
    43. </body>