Loading bar animation bar by bar
Hello community.
I'm seeing a heap of tutorials on YT, lots of instructors are using the trim path to make a loading bar animation, using the Dash to give it a more appealing visual. One thing I notice is, that the animating bar line, doesn't reveal one bar at a time, rather than each time the bar line animates, there's partially a bit of it revealed, then half of it, then the whole bar, until it goes to its next bar line.
I'm also posting my tedious task, Ive also seek advice from Chat GTP. Make as many bars I need, put them on separate layers, then animate the opacity of the bar 0-100, the keyframes very closely to each other. then spread out the layers on the timeline to achieve one bar reveal at a time, yes it does work, but imagine If I have 100 of them.... So What would be a more swift method, an expression maybe?
Thank you.

below is some example of what tutorials are showing, which seems incorrect.

