Fix transitions for Firefox