• html跳动的心实现代码


    <style>
            .box{
                200px;
                height: 400px;
                position: relative;
                margin: 30px auto;
                transform: all 0.5s;

            }
            @keyframes moves{
                from{box-shadow: 0 0 0 transparent;}
                30%{box-shadow: 0 0 50px rgb(236, 57, 57);}
                60%{box-shadow: 0 0 80px rgb(241, 97, 97);}
            }
            .box>div{
                animation: moves 1s infinite;
                transition-delay: 1s;
            }
            .box_1{
                100px;
                height: 100px;
                border-radius: 50%;
                background: red;
                border-bottom: 0;

            }
            div:nth-child(2){
                position: absolute;
                top: 0;
                left:80px;
            }
            .box_2{
                100px;
                height: 130px;
                background: red;
                transform: rotateZ(57deg);
               
            }
            .box>div:nth-child(3){
                position: absolute;
                top: 2px;
                right: 31px;
                background-color: red;
                border-radius: 50% 50% 0% 0;
                box-shadow: 0 0 0 transparent !important;
            }
            .box>div:last-child{
                position: absolute;
                top: 4px;
                left: 12px;
                transform: rotateZ(122deg);
                border-radius: 0 0% 50% 50%;
            }
            /* .box:hover>div{
                box-shadow: 0 0 10px rgb(241, 97, 97);
            } */
        </style>
    </head>
    <body>
        <div class="box">
            <div class="box_1"></div>
            <div class="box_1"></div>
            <div class="box_2"></div>
            <div class="box_2"></div>
        </div>
    </body>
    </html>
  • 相关阅读:
    gson和fastjson
    Hive和HBase的区别
    mac 比较两个文件
    mysql 查找在另一张表不存在的数据
    mysql 根据一张表更新另一张表
    shell调试
    目标
    百度在线面试总结
    20170109| javascript记录
    php-fpm问题
  • 原文地址:https://www.cnblogs.com/zhuxinpeng-looking/p/10597300.html
Copyright © 2020-2023  润新知