Suppose there is a button with its own style:
<a href="" class="action-button">SomeText</a> When I use jQuery to change the button text to SomeTextSomeText, the button becomes wider, but without animation, with a jerk. Tried to set transition: width .25s ease-in-out; but it had no effect. Actually, the question is how to determine the smoothness of changing the text inside the element using js (preferably without fadeIn / fadeOut or using css)?