Fix animation in Firefox