css3实现匀速无限滚动效果

时间:2018-09-09 15:11:21   收藏:0   阅读:2294

<div class="ddiv" style="">

  //这里的图片是一个圆圈

  <img class=‘dimg‘ src="video_c.png" >

</div>

.dimg{

  //infinite 无限循环 linear 匀速运动
  animation:2s animation1 infinite linear;
}
@keyframes animation1{
  0%{
    transform: rotate(0deg);
  }
  100%{
    transform: rotate(360deg);
  }
}

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!