zoukankan      html  css  js  c++  java
  • css3动画

    css3改变背景色和位置的动画时层上一定要加 position:relative 

     

    css3 ie10以上支持 火狐支持 欧朋支持 苹果和谷歌支持但必须加-webkit-

    @keyframes myfirst{

           0%{background:red;left:0px;top:0px;}

         25%{background:yellow;left:0px;top:20px;}

         50%{background:blue;left:20px;top:20px;}

         75%{background:green;left:20px;top:0px;}

       100%{background:red;left:0px;top:0px;} 

    @-webkit-keyframes myfirst{

      0%{background:red;left:0px;top:0px;}

         25%{background:yellow;left:0px;top:20px;}

         50%{background:blue;left:20px;top:20px;}

         75%{background:green;left:20px;top:0px;}

       100%{background:red;left:0px;top:0px;} 

    .dd{

    200px;

    height:200px;

    background:red;

    position:relative;

    -webkit-animation:myfirst 2s linear 2s infinite 循环播放 alternate 逆向播放;

    -webkit-animation-play-state:running/paused;// 这个必须单独写 指定动画是否正在运行或已暂停 

    animation: myfirst 2s linear 2s infinite 循环播放 alternate 逆向播放;

    animation-play-state:running/paused;//这个必须单独写 指定动画是否正在运行或已暂停 

  • 相关阅读:
    python基础 列表推导式
    信息时代的个人知识管理探微
    quaternion 四元数
    Display Lists在内存中的形式
    有关四元数 我所理解的四元数
    ogre scene_blend 透明
    ogre RenderTexture alpha rtt透明续
    四元数
    Ogre overlay实现帧动画
    贴图消失
  • 原文地址:https://www.cnblogs.com/licuihua/p/5474185.html
Copyright © 2011-2022 走看看