Inline download
A download button that fills with progress, counts up, then offers Open.
Inline download
MediumThe idea
A download button keeps progress, cancellation, completion and retry in the same control. Its moving arrow, label and color change with the current state.
Interaction
Press the button, or use Enter or Space, to start the simulated download. Press again or use Escape to cancel. Hovering a running button reveals its cancellation action.
When the run finishes, press the completed button to open its result. Turn on Fail next run to try the error and retry states. Duration and reset controls change the preview timing.
The public preview simulates progress. Reduced motion removes travel, blur and digit swaps while preserving every state and keyboard focus.
Adapted from Malay's download button on uibrik. The original gesture timing was matched against that source and rebuilt without its dependencies.