Update progress bar percent value on resize

Bart Welt shared this question 3 years ago
Answered

I'm trying to animate a progress bar using the resize event and also update a text percentage value when it resizes.


What I'm trying to achieve is having the value change during the animation, so while the resize is happening, the text value is incrementing 50%, 51%, 52%, etc. Is there a way to have the "set value" event either listen for the resize or fire multiple times to update the value based on the progress bar width?

Comments (1)

photo
1

Hi Bart,


This is definitely possible, though it may not be best to have it update every percent, but perhaps every 10 percent due to delay or the amount of events and conditions you would have to create.


Best,


Danielle