Fix transition event in webkit