When exactly does an ease animation reach its midpoint?

后端 未结 2 1800
悲&欢浪女
悲&欢浪女 2020-12-12 02:00

I am simulating the flip effect on a card. The card is a div with an image inside. I would like to change that image when the animation is exactly at its midpoint (i.e. when

2条回答
  •  轮回少年
    2020-12-12 02:42

    You can setup the values at your convenience. The thing is that with ease-out the transition will slow at the end so to know the exact time you will need to inspect the animation with the developer tools and check the exact moment where you require the image swap. That is really easy with Firefox Developer Tools, here you can see how to do it.

提交回复
热议问题