Fix gear animation for FF and IE

@tonio can you please take a look?