码迷,mamicode.com
首页 > Web开发 > 详细

css 翻牌 翻转 3d翻转 特效

时间:2017-04-30 12:42:22      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:ace   blog   transform   htm   scale   gray   ansi   bsp   html   

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>翻牌特效</title>
</head>
<style>
    div{
        position: absolute;
        transition: 1s;
    }
    .wai{
        width: 300px;
        height: 500px;
        background-color: red;
    }
    .wai div{
        backface-visibility: hidden;
        width: 100%;
        height: 100%;
    }
    .front{
        background-color: pink;
    }
    .back{
        background-color: gray;
        transform: rotateY(180deg);
    }
    .wai:hover{
        transform: scale(1.1);
    }
    .wai:hover .back{
        transform: rotateY(0deg);
    }
    .wai:hover .front{
        transform: rotateY(180deg);
    }
</style>
<body>
    <div class="wai">
        <div class="front"></div>
        <div class="back"></div>
    </div>
</body>
</html>

 

css 翻牌 翻转 3d翻转 特效

标签:ace   blog   transform   htm   scale   gray   ansi   bsp   html   

原文地址:http://www.cnblogs.com/zonglonglong/p/6789055.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!