webkit translateX animation is rolling back to initial position

后端 未结 4 648
轻奢々
轻奢々 2021-02-05 13:08

I am trying to do a images gallery for mobile webkit,

The only way it is actually fast enough is using the hardware accelerated translateX .

My problem is that

4条回答
  •  情深已故
    2021-02-05 13:46

    Use:

    -webkit-animation-fill-mode: none/backwards/forwards/both;
    

    This allows you to define at what end of your animation the element remains when the animation is finished.

提交回复
热议问题