Made animation work on firefox