Optimize transition css