I have a button that has some text in it. When you press it, the text changes. This makes the button's width change. It would be great if one could transition the change of an element's width with something like this:
#el {
transition: width 150ms ease-out;
}
Of course, that only works when you explicitly change the width
property.
Does anyone know of an elegant way to achieve this effect? Here's a (yet-to-function) fiddle to hack away at.