zoukankan      html  css  js  c++  java
  • css变化代码1

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title></title>
            <style type="text/css">
                .clear{
                    clear: both;
                }
                #div{
                     200px;
                    height: 200px;
                    border: 1px solid transparent;
                    background-color: white;

                     -------相对于原位置移动-------
                    position: relative;

                    -------动画:名称;完成全部运动的时间;循环播放;交互循环-------
                    animation: a 10s infinite alternate;
                }

    --------------------------------------------动画内容:名称所对应的div-------------------------------------------------------
                @keyframes a{

    --------------------------------------------运动至0%时所产生的变化-------------------------------------------------------
                    0% {
                        background-color:blueviolet ;

    --------------------------------------------边框变圆角:15%-------------------------------------------------------
                        border-radius: 15%;

    --------------------------------------------盒子阴影:右侧阴影大小;下侧大小;颜色-------------------------------------------------------
                        box-shadow:-10px 10px slategrey;
                        left: 0px;
                        top:80px
                    }
                    25% {
                        /* 0px;
                        height: 0px;
                        border-top: 100px solid cornflowerblue;
                        border-left: 100px solid transparent;
                        border-right: 100px solid transparent;*/
                        background-color:cornflowerblue ;
                        border-radius: 30%;
                        box-shadow:-15px 0px 3px slategrey;
                        left: 600px;
                        top:80px
                    }
                    50% {
                        background-color: chartreuse;
                        border-radius: 50%;
                        box-shadow: 0px -10px 3px slategrey;
                        left: 600px;
                        top: 300px;
                    }
                    75% {
                        background-color: orange;
                        border-radius: 30%;
                        box-shadow: 10px 0px 3px slategrey;
                        left: 0px;
                        top: 300px;
                    }
                    100% {
                        background-color: blueviolet;
                        border-radius: 15%;
                        box-shadow: -10px 10px slategrey;
                        left: 0px;
                        top: 80px;
                    }
                }
            </style>
        </head>
        <body>
            <div id="div"></div>
        </body>
    </html>

  • 相关阅读:
    Git的安装与配置
    JDBCTemplate
    消费金融大数据风控架构
    架构设计之道
    面向服务架构SOA
    java集合List解析
    web应用安全
    微服务的交互模式
    服务化管理和治理框架的技术选型
    分库分表就能无限扩容么?
  • 原文地址:https://www.cnblogs.com/0328dongbin/p/8698475.html
Copyright © 2011-2022 走看看