fix animation in old browsers