Replace sloppy js fade-out animation with a CSS3 one