zoukankan      html  css  js  c++  java
  • 扑克牌反转

    利用了2d特效
    <title>扑克翻转</title>
        <style type="text/css">
            .box{
                300px;
                height: 600px;
                margin: 50px auto;
            }
            .box img{
                position: absolute;
                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>
  • 相关阅读:
    简单封装的ajax请求
    mysql-8.0 安装教程(自定义配置文件,密码方式已修改)
    计算机专业术语
    mvc路由
    Chosen三级联动
    Chosen通用初始化
    .NET Core学习之路
    Sql的一些常规判断
    CORS 跨域
    SQL 的一个技巧
  • 原文地址:https://www.cnblogs.com/adialike/p/6401043.html
Copyright © 2011-2022 走看看