CSS Transition

  CSS transitions provide a way to control animation speed when changing CSS properties. Instead of having property changes take effect immediately, you can cause the changes in a property to take place over a period of time.

div
{
    width:100px;
    transition: width 2s;
}

 

transition: property duration timing-function delay;

 

参考:

1、https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions

相关文章:

  • 2021-11-15
  • 2021-11-02
  • 2021-12-30
  • 2021-12-30
  • 2021-06-22
  • 2022-02-08
  • 2021-09-14
猜你喜欢
  • 2021-06-06
  • 2021-10-23
  • 2021-09-27
  • 2022-01-09
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案