fix css transition issue