zoukankan      html  css  js  c++  java
  • [转]简单的动画效果

    来自:http://www.xinshuru.com/

    更多控制技能:https://www.cnblogs.com/yangrenmu/p/7085815.html

    <!doctype html>
    <html>
     <head>
      <meta charset="UTF-8">
      <title>叶子飘落</title>
    
    <style type="text/css">
        html,body{ width: 100%; height: 100%; overflow: hidden;}
        body{ margin: 0; padding: 0; font-family:'microsoft yahei';}
    
        .stage{ width: 100%; height: 100%; position: absolute; left: 0; top: 0; z-index: 1;}
        .stage .elem{ position: absolute; left: 50%; top: 50%;}
        .stage .scene{ width: 100%; height: 100%; position: absolute; left: 0; top: 0;}
        .stage .anim{ width: 100%; height: 100%; position: absolute; left: 0; top: 0}
    
        .s1 .elem{ background-image: url(page.png); background-repeat: no-repeat;}
    
        .s1 .text{ width: 498px; height: 94px; background-position: 0 0; margin: 3px 0 0 -49px;}
        .s1 .elem.leaves-big{ width: 239px; height: 150px; background-position: 0 0; margin:-25px 0 0 -350px;}
        .s1 .elem.leaves-small{ width: 90px; height: 65px; background-position: 0 -150px; margin:-50px 0 0 -470px;
            -webkit-animation: drop 6s linear infinite;
            -moz-animation: drop 6s linear infinite;
            animation: drop 6s linear infinite;
        }
    
        @-webkit-keyframes drop{
            0%{ -webkit-transform: rotateZ(-10deg) translateX(0) translateY(-250px); opacity: 0 }
            30%{ -webkit-transform: rotateZ(10deg) translateX(150px) translateY(-50px); opacity: 1 }
            60% { -webkit-transform: rotateZ(30deg) translateX(300px) translateY(150px); opacity: 0}
            100% { -webkit-transform: rotateZ(30deg) translateX(300px) translateY(150px); opacity: 0}
        }
    </style>
     
    
     </head>
     <body>
        <div class="stage">
            <div class="scene s1">
                <div class="anim" style="">
                    <div class="text" style="transform: translateY(0px);"></div>
                    <div class="elem leaves-big"></div>
                    <div class="elem leaves-small"></div>
                </div>
            </div>
        </div>
     </body>
    </html>

  • 相关阅读:
    Oslec Echo Canceller:开源回声消除方案
    引用:SpeechLinks
    打印论文分类
    语音算法方案公司
    推送 push
    Android完美多语言应用,不重启应用,不改变系统语言
    定时任务quartz
    在android平台解决找不到sun.misc.BASE64Enocder的问题
    IOS背景view隐藏键盘
    为ExpandableListView自定义Item
  • 原文地址:https://www.cnblogs.com/z5337/p/13599557.html
Copyright © 2011-2022 走看看