Gist for transition end(css3) callback