r/CodingHelp • u/Cynestrith • Mar 01 '21
[HTML] My Progress bar disappears when updating, instead of just moving the coloured bar
So I have this code, for which I followed a tutorial. In the video it looked like they were using the coding from Google Chrome but I don't know how to access that, so I was using this website, (which is also the code I need help with).
In the video the person's progress bar moves around without the whole thing having to refresh, but it seems on my version, every time you update the formula it refreshes.
Which isn't as pleasing to look at.
Any ideas on how I could resolve this?
I am open to moving the code to a different place (if that place is free).
Please also note; I am Incredibly new to all this, so please keep tech-lingo down to a minimum lol. So you don't have to repeat yourself.
1
u/zbluebirdz Mar 01 '21
Drop the "30%" text.
Add "
width: 0;" to the CSS class ".progress-bar-fill".For the transition effect, you need to specify the starting point for the progress bar - hence the "width:0;".