• css圆圈慢慢放大


    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            *{
                margin:0;
                padding:0;
            }
            html,body{
                height:100%;
            }
            body{
                background:url(./images/2.jpg) no-repeat;
                /* 控制背景图大小 */
                background-size:100% 100%;
            }
            img{
                display:block;
            }
            .fixed_center{
                position:fixed;
                left:0;right:0;
                top:0;bottom:0;
                margin:auto;
            }
            /* 支架 */
            .bracket{
                margin:auto auto 0;
            }
            /* 轮子 */
            .img1{
                animation:imgRotate 20s linear infinite;
            }

            /* 放小人的盒子 */
            .picBox{
                768px;
                height:768px;
                animation:imgRotate 20s linear infinite;
            }
            .picBox img{
                position: absolute;
                /* 小人的图片也转动  反向的旋转 */
                animation:imgRotate 20s linear infinite reverse;
                /* 改变圆心点的位置 */
                transform-origin:center 10px;
            }
            .pic1{
                left: 43%;
                top: 4%;
            }
            .pic2{
                left: 43%;
                bottom: -13%;
            }
            .pic3{
                left: -1%;
                top: 45%;
            }
            .pic4{
                right: -1%;
                top: 45%;
            }

            /* 关键帧 */
            @keyframes imgRotate {
                0%{
                    transform:rotate(0);
                }
                100%{
                    transform:rotate(360deg);
                }
            }
        </style>
    </head>
    <body>
        <!-- 支架 -->
        <img class="fixed_center bracket" src="./images/bracket.png" alt="">
        <img class="fixed_center bracket" src="./images/bracketsmall.png" alt="">
        <img class="fixed_center img1" src="./images/fsw.png" alt="">
        <div class="fixed_center picBox">
            <img class="pic1" src="./images/boy.png" alt="">
            <img class="pic2" src="./images/girl.png" alt="">
            <img class="pic3" src="./images/girls.png" alt="">
            <img class="pic4" src="./images/mimi.png" alt="">
        </div>
        <!-- logo -->
        <img class="fixed_center" src="./images/big-title.png" alt="">
    </body>
    </html>
    右侧打赏一下 代码改变世界一块二块也是爱
  • 相关阅读:
    poj1330 Nearest Common Ancestors
    poj3237 Tree
    spoj2798 QTREE3 Query on a tree again!
    spoj913 QTREE2 Query on a treeⅡ
    自动类型转换
    js "+"连接符号
    js parseFloat
    js字符串与数字的运算
    js prompt
    js数组排序
  • 原文地址:https://www.cnblogs.com/ht955/p/15173142.html
Copyright © 2020-2023  润新知