Stopping a CSS animation but letting its current iteration finish

后端 未结 2 1298
一向
一向 2020-12-05 07:06

I have the following HTML:

And the following CSS:

@-webkit-keyframes rotate {
  t         


        
2条回答
  •  心在旅途
    2020-12-05 07:49

    Do you mean you want the animation to stop where it is when it ends without jumping back to its original position?

    Then you want:

    Animate something moving from one place to another and have it stay there: animation-fill-mode:forwards;

    check this link:

    http://www.w3schools.com/cssref/css3_pr_animation-fill-mode.asp

提交回复
热议问题