After realizing that my navigation menu had too few tabs, I decided to hide the text in the tabs by default and make it appear when hovering over a tab. However, the text was showing instantly and causing the tab expanding animation to break.
I want the tabs to behave like this example: http://i.imgur.com/XEJl9sW.gif, including hiding the text. Can someone provide a solution for this issue? Thank you.
PS: I prefer using CSS over JS.
transformers
.EDIT:
Special thanks to @Mat's solution which I modified slightly to enhance the appearance: https://jsfiddle.net/n80dn16o/2/