fix for setting css transition property for webkit