zoukankan      html  css  js  c++  java
  • css动画效果

    效果展示

     











    css代码如下

     1 div{
     2         width: 100px;
     3         height: 100px;
     4         background-color: red;
     5         position: relative;
     6         animation: anim 5s infinite alternate;
     7         -webkit-animation: anim 5s infinite alternate;
     8         }
     9 @keyframes anim {
    10         0%{background: red;left: 0px;top: 0px}
    11         25%{background: blue;left: 200px;top: 0px}
    12         50%{background: #ccffcc;left: 200px;top: 200px;}
    13         75%{background: #00ffff;left: 0px;top: 200px}
    14         100%{background: red;left: 0px;top: 0px}
    15         }
    16 @-webkit-keyframes anim {
    17         0%{background: red;left: 0px;top: 0px}
    18         25%{background: blue;left: 200px;top: 0px}
    19         50%{background: #ccffcc;left: 200px;top: 200px;}
    20         75%{background: #00ffff;left: 0px;top: 200px}
    21         100%{background: red;left: 0px;top: 0px}
    22         }</style>
  • 相关阅读:
    Emgu安装配置及使用
    ASP.NET动态网站制作(1)--html
    ASP.NET动态网站制作(0)
    文件自动拆分
    visual studio 常用快捷键
    用vector构造自动扩容的二维数组
    C++中的struct
    Word论文写作如何实现公式居中、编号右对齐
    借助 Filter 生成静态页面缓存问题
    xshell 中解决中文乱码问题
  • 原文地址:https://www.cnblogs.com/zzmx0/p/12539241.html
Copyright © 2011-2022 走看看