Hi,
I would like to implement a button where there is an animation (for example, a wave of color filling the button in, left to right) that begins on press and ends at the end of the long press duration, at which point the app navigates to the next screen. The animation would stop if the user stops pressing the button.
I understand that you can trigger navigation on long press, but does anyone have any ideas on how to trigger the animation that starts on tap and disappears if the user stops pressing? An animation like this can be a useful way to indicate implicitly to the user that they need to continue to hold down the button to proceed.