day09

今天学了什么

动画animation

     1.定义@keyframes 
    A.@keyframes myfirst
{
    from {background: red;}
    to {background: yellow;}
}
     B.@keyframes myfirst
{
    0%   {background: red;}
    25%  {background: yellow;}
    50%  {background: blue;}
    100% {background: green;}
}
      div{
 animation:myfirst 2s;
}
div{
 animation:myfirst 2s infinite;  //无限循环
}

学会了什么

动画animation

     1.定义@keyframes 
    A.@keyframes myfirst
{
    from {background: red;}
    to {background: yellow;}
}
     B.@keyframes myfirst
{
    0%   {background: red;}
    25%  {background: yellow;}
    50%  {background: blue;}
    100% {background: green;}
}
      div{
 animation:myfirst 2s;
}
div{
 animation:myfirst 2s infinite;  //无限循环
}
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 173,335评论 25 708
  • 动画animation//定义:@keyframes (//关键帧) 例子: //CSS 例子: animatio...
    陈梦晴阅读 304评论 0 0
  • A我今天学了什么 动画animation//定义:@keyframes (//关键帧) animation 动画片...
    孔子曰_f425阅读 157评论 0 0
  • A:今天学到的内容 一、动画(animation) 二、搜索框 input type="submit"给它边框不会...
    AnnQi阅读 192评论 0 1
  • A今天学了什么 1.animation 动画 2.使用动画animation B我掌握好的地方 1.animat...
    执念念不直阅读 201评论 0 0