Fix animation/transition bug on FF.