fixes animation to non integer values