Detecting CSS animation completion with JS

From http://davidwalsh.name/css-animation-callback?utm_source=javascriptweekly&utm_medium=email