zoukankan      html  css  js  c++  java
  • 多背景

    多背景幕布形式拉开和关闭效果: 

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>多背景</title>
        <style>
            @-webkit-keyframes move
            {
                0%
                {
                    -webkit-animation-timing-function:ease;
                    background-position:0 0,0 298px,center,0 0, 0 0;
                    background-size:auto,auto,0 0,auto,auto;
                }
                40%
                {
                    background-position:0 -292px,0 610px,center,0 0,0 0;
                    background-size:auto,auto,0 0,auto,auto;
                }
                85%
                {
                    background-position:0 -292px,0 610px,center,0 0,0 0;
                    background-size:auto,auto,344px 432px,auto,auto;
                }
                100%
                {
                    background-position:0 -292px,0 610px,center,0 0,0 0;
                    background-size:auto,auto,344px 432px,auto,auto;
                }
            }
            #box
            {
                width:1024px; height:615px; margin:0 auto; background:url(Images/new-top.png) no-repeat,url(Images/new-bottom.png) no-repeat 0 298px,url(Images/html5_logo.png) no-repeat center,url(Images/new_star.png) no-repeat,url(Images/new_bg.png) no-repeat;  /*第一处背景图在最上面*/
                background-size:auto,auto,0 0,auto,auto;
                -webkit-animation-name:move;
                -webkit-animation-duration:3s;
                -webkit-animation-direction:alternate; /*规定动画是否在下一周期逆向地播放。默认是 "normal"。*/
                -webkit-animation-iteration-count:2; /*规定动画被播放的次数。默认是 1。*/
                -webkit-animation-delay:1s;
            }
        </style>
    </head>
    <body>
        <div id="box">
        </div>
    </body>
    </html>
  • 相关阅读:
    你好毒
    Sketchup创建屋顶插件
    sketchup实体开洞插件holeonsolid
    SolidWork支架模型
    让WebForm异步起来
    正则表达式点滴(2)
    异步调用之精简方式
    浅谈C#中常见的委托
    基于异步方式的语法着色器
    利用WPF的ListView进行大数据量异步加载
  • 原文地址:https://www.cnblogs.com/aimyfly/p/3152879.html
Copyright © 2011-2022 走看看