animation member is not a boolean but an integer in SpinBox