I’m stuck at doing the progress bar in relative to the container below it.
Here’s the detail:
- I made 3 containers.
- Each containers background will change in color if it is located slightly on top of the user viewport by adding a
highlight
class. - Now, I add a single line between those containers to act as a progress bar.
- The first progress bar gonna move from right to left, while the second progress bar gonna move from left to right.
I’m stuck at no.3 and no.4, and after some googling, I only found progress bar for the container height, not when it reach a certain container. Any insight?
Here’s the codepen for what I got so far.