[#960] Fixed Weird Firefox animation

@rumca can you check please?