If you pay close attention to YouTube, you may have noticed that the video play button does not simply switch to a pause icon when clicked, but morphs very quickly between states. This is accomplished via SVG, controlled with JavaScript. Here, I’ll show my variation of the UI pattern.
Full article