Fix animations for Firefox