Add some (pretty finicky) CSS transitions for hover effects.