[Bugfix] Animate progress bar on mount, update demo #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Builds on top of #21
The progress bar would not animate on the initial mount of the component because no CSS transition would occur (the bar starts at the specified width). This adds handling to start the bar at
0
and transition to the passed incompleted
value.I've also updated the code for the demo to work correctly and added a script to build the demo,
build-demo
. I don't know how this gets published to GitHub Pages, but that would need to be done after rebuilding the demo code.