阅读背景:

JavaScript - 如何动画替换单词中间句的宽度变化

来源:互联网 

I have a sentence in which one word fades out, and is replaced by another word in an array. However, since the words all vary in length, the sentence width abruptly changes and it looks choppy. How can I animate the width? I tried adding a transition to the container of the sentence in css but that didn't work. I applied the transition as I have a sentence in which one word fades out,




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: