I want to create a cool animation for my accordion headers that mimics a ribbon being dragged onto the wrapper when hovered over, and then dragged out when the hover ends.
Everything was working fine in this initial jsFiddle, but as soon as I tried to animate the width of the h2 element, the ribbon part outside of the wrapper disappeared briefly and then reappeared after the width animation finished. You can see the issue in this jsFiddle.
Do you think I'm approaching this incorrectly? Is there a way to simultaneously animate both the h2 and the span elements?