首页 > 其他 > 详细

扑克牌反转

时间:2017-02-15 15:03:30      阅读:186      评论:0      收藏:0      [点我收藏+]
利用了2d特效
<title>扑克翻转</title>
    <style type="text/css">
        .box{
            width: 300px;
            height: 600px;
            margin: 50px auto;
        }
        .box img{
            position: absolute;
            width: 300px;
            height: 600px;
            border-radius: 3%;
            box-shadow:10px 10px 10px #999;
            transition: all 2s;
            transform-origin: bottom;
        }
        .box:hover img:nth-child(1){
            transform: rotate(30deg);
        }
        .box:hover img:nth-child(2){
            transform: rotate(20deg);
        }
        .box:hover img:nth-child(3){
            transform: rotate(10deg);
        }
        .box:hover img:nth-child(4){
            transform: rotate(0deg);
        }
        .box:hover img:nth-child(5){
            transform: rotate(-10deg);
        }
        .box:hover img:nth-child(6){
            transform: rotate(-20deg);
        }
        .box:hover img:nth-child(7){
            transform: rotate(-30deg);
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="img/1.jpg">
        <img src="img/4.jpg">
        <img src="img/5.jpg">
        <img src="img/6.jpg">
        <img src="img/7.jpg">
        <img src="img/8.jpg">
        <img src="img/9.jpg">
    </div>
</body>

扑克牌反转

原文:http://www.cnblogs.com/adialike/p/6401043.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!