From http://davidwalsh.name/firefox-animation