Describe the bug
I looked at the example in Pattern Lab and could not figure out how to make the progress bar dynamic. The animation seem to be hardcoded.
Expected behavior
What I ended up doing was replacing the animation with a transition on the width style property, like in Fluent React.
/*
* Transistion from Fluent React
* MIT license: https://github.com/microsoft/fluentui/blob/master/packages/react/LICENSE
*/
.hoo-progress-indicator {
animation-name: none;
transition: width 0.15s linear 0s;
}
<div class="hoo-progress-indicator" style="width: {{ progress }}%;"></div>
Describe the bug
I looked at the example in Pattern Lab and could not figure out how to make the progress bar dynamic. The animation seem to be hardcoded.
Expected behavior
What I ended up doing was replacing the animation with a transition on the width style property, like in Fluent React.