Tianjieqiangzhelingfeng

<img src="" />

添加css

img{ width:400px;height:auto;    animation: heart 0.5s infinite;  }

/*animation:动画名称  消耗时间  运动曲线  开始时间  播放次数  是否添加反方向*/

1.变化大小

@keyframes heart{  

  0%{transform:scale(1);}

  50%{transform:scale(1.2);}

  100%{transform:scale(1);}

}

2.移动/颜色变化

@keyframes move{

  from{left:0;background:red;}

  to{left:1000px;background-color:yellow;}

}

3.旋转

@keyframes rotate{

  from{transform:rotate(0deg);}

  to{transform:rotate(360deg);}

}

分类:

技术点:

相关文章:

  • 2021-11-28
  • 2021-12-08
  • 2021-11-20
  • 2021-11-17
  • 2021-11-15
  • 2020-01-04
猜你喜欢
  • 2021-11-28
  • 2020-05-20
  • 2021-11-28
  • 2021-12-05
相关资源
相似解决方案