Switch to a DOM-based element instead of pseudo-element for animations, to work properly in webkit.