For the list of of integer arrays, we can use an actual HTML list with <li> that contain CSS variables with the number of people going up (--up) and down (--down) the bus. Then using CSS counters we can keep a count of the people who are on the bus at each moment.
CSS (kind of):
For the list of of integer arrays, we can use an actual HTML list with
<li>
that contain CSS variables with the number of people going up (--up
) and down (--down
) the bus. Then using CSS counters we can keep a count of the people who are on the bus at each moment.Live demo on CodePen.