问答详情
源自:9-1 CSS3 Keyframes介绍

搜狗浏览器,有没有成功的?

@-webkit-keyframes changecolor{

  0%{

    background: red;

  }

  20%{

    background:blue;

  }

  40%{

    background:orange;

  }

  60%{

    background:green;

  }

  80%{

    background:yellow;

  }

  100%{

    background: red;

  }

}

div {

  width: 300px;

  height: 200px;

  background: red;

  color:#fff;

  margin: 20px auto;

}

div:hover {

  animation: changecolor 5s ease-out .2s;

}


提问者:着你追 2015-08-01 12:12

个回答

  • keiu
    2016-02-02 09:46:02

    div:hover {

     animation: changecolor 5s ease-out .2s;

     -webkit-animation: changecolor 5s ease-out .2s;

     -moz-animation: changecolor 5s ease-out .2s;

     -ms-animation: changecolor 5s ease-out .2s;

     -o-animation: changecolor 5s ease-out .2s;

    }

    请设置为高速模式

    或者将您的IE升级到9以上