fix broken animation due to never setting fromValue

Without the change, the button would switch state immediately without animation.