jQuery: Animate on change of .innerHTML or .text
问题 I'm translating my site by dynamically changing the text on the website with jQuery like this: <span id="mySpan">Something in English</span> $('#mySpan').html("Something else in Spanish"); It works great but, due to changes in the length of the text, it's a hard transition, the new text just appears and parent element is resizing instantly. Is there an easy way to animate/ease the transition during the change of text? Like Fadeing and/or resizing nicely? I know it's possible with hidden