zoukankan      html  css  js  c++  java
  • 动画

    首先创建一个动画
    @keyframes move(这是动画的名字){
          from{
                                            }    
             to{                    
                                            }

         0%{
                     }
          50%{
                       }
            100%{
                        }----------动画移动到时间的0% 50% 100%时的效果;------------
    }
    然后设置这个动画的宽高,及其他:
         width:
         height:
         background:
        top:
        left:
        animation:move(动画的名字)3s(动画运行的时间)1;(动画运行的次数;infinite是重复)

    animation:move 3s  infinite;可以分解为
     
                                              animation-name:move;------动画的名字
                                              animation-duration:3s;-------设置动画播放的时间;
                                              animation-iteration-count;---------动画的播放次数;
                                               ------------------------------
                                              animation-timing-function:linear;----设置动画的速度曲线;
                                              animation-delay:1s; -----设置动画的延长时间;
                                              animation-direction:alternate;-----设置是否反向运动;
                                              animation-fill-male:farwards;-----设置动画执行反停在那种状况下;
                                              animation-play-state:paused;------设置当前动画播放状态;
     
                                             transform:rotate(360deg);-----旋转;
                                             transform:scale(.5);-----缩放;
                                             transform:translate(600px);--------平移;
                                             transform:skew(45deg);-------------倾斜;
                                             如果运用的transform属性较多那么就写在一起,否则下面的属性会覆盖上面的属性。
                                        
  • 相关阅读:
    codeforces707B:Bakery
    codeforces707A:Brain's Photos
    BZOJ1084 [SCOI2005]最大子矩阵
    BZOJ1264 [AHOI2006]基因匹配Match
    BZOJ2764 [JLOI2011]基因补全
    codevs1257 打砖块
    BZOJ1079 [SCOI2008]着色方案
    BZOJ1026 [SCOI2009]windy数
    菜鸟学自动化测试(一)----selenium IDE
    关于w3school的html5部分output 元素实例代码(点亲自试一试进去)的问题纠正
  • 原文地址:https://www.cnblogs.com/cntt/p/6418152.html
Copyright © 2011-2022 走看看