Fix for CSS transitions.