Fix CSS transition